Copying windows [message #3721] |
Tue, 28 February 1995 17:45  |
mallozzi
Messages: 60 Registered: August 1994
|
Member |
|
|
Hi all,
I would like to make a copy of a plot in one window, and put it in
a second window. Is there any way to change the dimensions of the rectangle
that I copy, so I can place it into a window of a different size? I tried
IDL> window, 0, xsize = 500, ysize = 400
IDL> plot, findgen(10)
IDL> window, 1, xsize = 600, ysize = 500
IDL> device, copy = [0, 0, 500, 400, 0, 0, 0]
This copies the pixels, but the plot in window 1 is the same size as
the plot in window 0. I tried changing the values of copy, but could
not get it to do what I want. Is there a way to copy plots to windows
of a different size?
Thanks,
mallozzi@ssl.msfc.nasa.gov
|
|
|
Re: Copying windows [message #3727 is a reply to message #3721] |
Tue, 28 February 1995 19:42  |
rivers
Messages: 228 Registered: March 1991
|
Senior Member |
|
|
In article <3j0jka$no0@hammer.msfc.nasa.gov>, mallozzi@ssl.msfc.nasa.gov writes:
> Hi all,
> I would like to make a copy of a plot in one window, and put it in
> a second window. Is there any way to change the dimensions of the rectangle
> that I copy, so I can place it into a window of a different size? I tried
>
> IDL> window, 0, xsize = 500, ysize = 400
> IDL> plot, findgen(10)
> IDL> window, 1, xsize = 600, ysize = 500
> IDL> device, copy = [0, 0, 500, 400, 0, 0, 0]
>
> This copies the pixels, but the plot in window 1 is the same size as
> the plot in window 0. I tried changing the values of copy, but could
> not get it to do what I want. Is there a way to copy plots to windows
> of a different size?
>
At the price of lower performance you can use TVRD(), REBIN() or POLY2D()
and TV to do what you want.
____________________________________________________________
Mark Rivers (312) 702-2279 (office)
CARS (312) 702-9951 (secretary)
Univ. of Chicago (312) 702-5454 (FAX)
5640 S. Ellis Ave. (708) 922-0499 (home)
Chicago, IL 60637 rivers@cars3.uchicago.edu (Internet)
|
|
|