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

Home » Public Forums » archive » Re: PLOTS in different windows with different RANGE
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
Re: PLOTS in different windows with different RANGE [message #63029] Fri, 24 October 2008 05:01
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Karlo Janos writes:

> Now I have learned from your example that it is not enough to save
> !X.RANGE only, but the whole !X.

If you look at the CatCoord object in my Catalyst Library,
you will see that what is really needed is !X.CRANGE,
!X.S, and the !P.CLIP field. It took me nearly a year
to figure this out, and I paid dearly for the information,
but it is still easier to save all the plotting system
variables and be done with it. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: PLOTS in different windows with different RANGE [message #63033 is a reply to message #63029] Fri, 24 October 2008 00:11 Go to previous message
Karlo Janos is currently offline  Karlo Janos
Messages: 31
Registered: July 2008
Member
> This is nearly identical to overploting with !P.MULTI
> set:

Indeed my first approach was plotting in a two column multi-plot. Then
I saw, that the data disappears outside the coordinate system in one of
the plots. So I tried two separate windows instead of the multi-plot.
Unfortunately with the same result.


> The secret is saving the correct system variables.

Now I have learned from your example that it is not enough to save
!X.RANGE only, but the whole !X. Thanks!
Best regards

Karlo
Re: PLOTS in different windows with different RANGE [message #63034 is a reply to message #63033] Fri, 24 October 2008 00:07 Go to previous message
Karlo Janos is currently offline  Karlo Janos
Messages: 31
Registered: July 2008
Member
Vince Hradil wrote:

> I'd make an invisible plot to setup my coordinate system, then perform
> the PLOTS
>
> plot, xvals, yvals, /nodata, xstyle=4, ystyle=4
> plots, foobar

Thank you for this hint! /NODATA seems to be an easy way. But since I
would have to call PLOT too often, the program is slowed down. Thus the
trick of David Fanning might be the better choice in my case.
Regards

Karlo
Re: PLOTS in different windows with different RANGE [message #63051 is a reply to message #63034] Thu, 23 October 2008 09:31 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Karlo Janos writes:

> I'd like to plot data points with PLOTS in two different windows with
> different data ranges for the x-axis. The problem is that after the
> second window change (back to window 1) the range is that of window 2,
> so the data points vanish outside the coordinate system.
> I tried to set !X.RANGE manually after each window change, but that is
> not the solution.
> Any idea how to get that working?

This is nearly identical to overploting with !P.MULTI
set:

http://www.dfanning.com/tips/oplot_pmulti.html

The secret is saving the correct system variables.

Cheers,

David
--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: PLOTS in different windows with different RANGE [message #63054 is a reply to message #63051] Thu, 23 October 2008 08:37 Go to previous message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Oct 23, 10:21 am, "Karlo Janos" <idl.20.beam...@spamgourmet.com>
wrote:
> Hi all!
>
> I'd like to plot data points with PLOTS in two different windows with
> different data ranges for the x-axis. The problem is that after the
> second window change (back to window 1) the range is that of window 2,
> so the data points vanish outside the coordinate system.
> I tried to set !X.RANGE manually after each window change, but that is
> not the solution.
> Any idea how to get that working?
> Best regards
>
> Karlo

I'd make an invisible plot to setup my coordinate system, then perform
the PLOTS

plot, xvals, yvals, /nodata, xstyle=4, ystyle=4
plots, foobar
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: QUESTION: is there a command in idl which could clean up memory pieces?
Next Topic: Re: serial.dll for serial port under IDL

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

Current Time: Wed Oct 08 15:37:28 PDT 2025

Total time taken to generate the page: 0.00604 seconds