comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Arghh, not an Axis object problem....
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Arghh, not an Axis object problem.... [message #64708] Tue, 13 January 2009 08:30
ghgm2008 is currently offline  ghgm2008
Messages: 17
Registered: December 2008
Junior Member
Hi there,

I'm trying to build a simple plot with object graphics but I've come
unstuck with the axis object. I notice lots of queries
about this over the years - but I still can't get it sorted.

Ok, so I have an Axis which runs from 0 to 1. I now want to update
this so that it goes from min_time to max_time.
My times are Julian so they are those nasty big numbers.

Any ideas on what I'm doing wrong ? The code is hacked from David
Fanning's xplot and I'm using his FSC_normalize function.

Here's the code - Any help very much appreciated

My axis object is called xaxis1_A, time_min and time_max are
2454845.083333333954215 and 2454845.208333333954215
(ie, a 3 hour time axis):

result = label_date(date_format='%M:%D:%H:%I')
xrange = [time_min,time_max]
xaxis1_A->SetProperty, range=[time_min,time_max]
xAxis1_A->GetProperty, CRange=xrange
xs = FSC_Normalize(xrange, Position=[position_A[0], position_A[2]])
xAxis1_A->SetProperty, XCoord_Conv=xs
xaxis1_A->SetProperty, tickformat='label_date'
xaxis1_A->SetProperty, exact = 1
thisWindow->Draw, plotView

Cheers,

George.
[Message index]
 
Read Message
Previous Topic: Re: Move Newsgroup to Facebook
Next Topic: Move Newsgroup to Facebook

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 12:53:19 PDT 2025

Total time taken to generate the page: 2.48136 seconds