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

Home » Public Forums » archive » how to grab !X.TICKS from previously drawn plot?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
how to grab !X.TICKS from previously drawn plot? [message #10968] Thu, 29 January 1998 00:00
Charlotte DeMott is currently offline  Charlotte DeMott
Messages: 7
Registered: January 1998
Junior Member
Here's my problem:

I have two curves that I want to plot on the same plot. The
curves are similar in shape, but are scaled differently
while being computed. The scaling varies for each series of
curves I want to plot, and is not easily determined. I
would like to simply plot the second curve over the first by
supressing the axis labeling on the second plot. This works
fine when IDL chooses the same number of y-tick intervals
that are present in the first plot, but it often chooses a
different number. How can I save the value of !Y.TICKS from
the first plot and apply it to the second plot?

i.e.,
plot, xvalues, data1, xrange=[10,100]
<save value of !Y.TICKS here?>
plot, xvalues, data2, xrange=[10,100], xstyle=4, /noerase,
YTICKS=(saved variable name)

thanks for any help!

charlotte
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: avoiding for loop when calculating median
Next Topic: Re: David Fanning's IDL Programming Techniques Book

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

Current Time: Wed Oct 08 18:40:31 PDT 2025

Total time taken to generate the page: 0.00553 seconds