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 #46646 is a reply to message #46548] Tue, 29 November 2005 17:31 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Mark Hadfield writes:

> 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.

Ah, *my* NORMALIZE does it's calculations in double precision. But I
just noticed that my XPLOT has an *old* copy that does it in single
precision. Just another reminder to all you aspiring IDL programmers
out there that you should really, REALLY check your assumptions. :-)

Thanks, Mark.

Cheers,

David

P.S. The *new* version of XPLOT will not include NORMALIZE. :-)

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[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 17:58:36 PDT 2025

Total time taken to generate the page: 0.00448 seconds