Re: howto select and deselect plotting windows? [message #75304 is a reply to message #75229] |
Tue, 22 February 2011 11:05  |
pgrigis
Messages: 436 Registered: September 2007
|
Senior Member |
|
|
Hi Simona,
I would like to emphasize what was said by Jeremy & David
(just to make sure the point is not going to be missed):
Please do *not* plot something on window 1, plot something on window
2,
then go back to 1 and do an overplot.
This will most likely have disastrous consequences and give you
a headache. I'd rather suggest you go swimming with sharks if
you really like the thrill of doing something dangerous :)
There are 3 ways of doing this properly:
1) (perhaps the simplest solution) switch the order of the plots
plot on 1, oplot on 1, plot on 2
(you can accomplish this by saving the x and y position of the
datapoints and only plotting when all is computed)
2) save and restore the graphic coordinates for each window
plot on 1, save graphic coord of 1, plot on 2, restore graph coord
of 1, oplot on 1
I would suggest not to do that as it is somewhat complicated.
3) use cg* routines as described by David & Jeremy
Ciao,
Paolo
On Feb 21, 1:03 pm, simona bellavista <afy...@gmail.com> wrote:
> Dear idl users,
>
> I am looking for a way to select and deselect plotting windows, going
> back and forth between them.
> I mean I would like to
>
> select <window 0>
> plot, x1, y1
>
> and then
>
> select <window 1>
> plot, t, s
>
> and then again
>
> select <window 0>
> oplot, x2, y2
>
> How do I do this? I remember I read something like that a while ago,
> but now I cannot find it anymore...
>
> Many thanks to anybody would like to reply me
|
|
|