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

Home » Public Forums » archive » Copying windows
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
Copying windows [message #3721] Tue, 28 February 1995 17:45 Go to next message
mallozzi is currently offline  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 Go to previous message
rivers is currently offline  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)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Routine on the gridding with continuous curvature splines
Next Topic: IDL startup trick

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

Current Time: Sat Oct 11 02:53:45 PDT 2025

Total time taken to generate the page: 1.76361 seconds