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

Home » Public Forums » archive » Plotting time
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Plotting time [message #46548 is a reply to message #46515] Tue, 29 November 2005 16:57 Go to previous messageGo to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
David Fanning wrote:
> Hang on a minute and I'll make it easy for you. :-)

David sent me some code in which a date axis as described by the OP was
grafted into his XPLOT plotting window application thingy. The axis
appeared in the wrong place, off the left-hand edge of the plot window,
as reported. I traced the problem. XPLOT gets the axes in the right
place by adjusting the scaling, something like this

xAxis->GetProperty, CRange=xrange
xs = Normalize(xrange, Position=[xn0,xn1])
xAxis->SetProperty, XCoord_Conv=xs

where xn0 & xn1 are the desired end points of the axis in normalised
coordinates.

NORMALIZE was doing its calculations in single-precision floating point
and returning a single-precision result. Once I changed everything to
double-precision, the axis appears in the right place.


>> Incidentally, LABEL_DATE is evil; the C() formats are much better, and
>> not *that* hard to construct.
>
> It is screwy with or without LABEL_DATE.

Sure. That was just me riding one of my hobby horses.

--
Mark Hadfield "Kei puwaha te tai nei, Hoea tahi tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Utilizing Identifiers in iTools
Next Topic: IDL T-Shirt Makes You Feel Like a Rock Star

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

Current Time: Wed Oct 08 19:53:26 PDT 2025

Total time taken to generate the page: 0.00360 seconds