Arghh, not an Axis object problem.... [message #64708] |
Tue, 13 January 2009 08:30 |
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.
|
|
|