Re: TV and PostScript [message #7864] |
Tue, 21 January 1997 00:00  |
joseph.b.gurman
Messages: 15 Registered: October 1995
|
Junior Member |
|
|
In article <5c2hi2$1a72@urano.inet.it>, aspinelli@ismes.it (Andrea
Spinelli) wrote:
> Hi everyone,
>
> I would like to print a colour map with TV on a PostScript
> device.
>
> I have a grid with my data, let's suppose it is a 10 x 20 floating
> array named mygrid.
>
> I want to use all available display space, so I do
>
> biggrid = congrid( mygrid, !d.x_size , !d.y_size )
> tv, biggrid
>
> On a window, this causes no problems.
>
> But, if I select a postscript device , !d.x_size and !d.y_size are
> very very big (there are 1000 pixel for cm, so there are about 20000
> pixels for dimension). This makes for a 20k x 20k grid, about 400
> million elements. Obviously, this breaks IDL.
>
> I do not want 1000 pixel per cm! But I cannot change the resolution
> (or, I am not able to change it). What can I do?
>
> Has anybody made a colour map with PostScript???
>
> Is there any way out of this problem???
Andrea -
First, you don't have to do the CONGRID mapping at all; IDL takes care of
that when you give the TV command in with the plotting device set to PostScript.
You do, however, want to set xsize and ysize such that the aspect ratio of
the plotting box is the same as that of the original array (i.e., with
DEVICE, xsize = xxxx, ysize = yyyy commands).
Also, if you have an 8-bit color table, don't forget to set the device:
IDL> DEVICE, bits = 8, /color
Hope this helps,
Joe Gurman
--
J.B. Gurman / Solar Physics Branch/ NASA Goddard Space Flight Center/
Greenbelt MD 20771 USA / joseph.b.gurman@gsfc.nasa.gov
| Federal employees are still prohibited from holding opinions while at |
| work. Therefore, any opinions expressed herein are somebody else's. |
|
|
|