Re: TV and PostScript [message #7868 is a reply to message #7866] |
Tue, 21 January 1997 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Andrea Spinelli <aspinelli@ismes.it> writes:
> 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???
There are several articles on my web page that answer these questions.
You will find them in the "Getting Perfect PostScript Output" section.
Perhaps the easiest way to solve your problem is to download the
program TVIMAGE from my web page. Then you can write your
TV command like this:
TVIMAGE, mygrid, Position=[.0, 0., 1., 1.]
Now your image will fill up your current window on your display
screen or the full "window" on your PostScript page. You won't
have to change your code at all (or know anything about its size!).
If you don't have a web browser, you can download the TVIMAGE
program via anonymous ftp from the machine ftp.frii.com. Look
in the directory /pub/dfanning/outgoing/idl_examples/tvimage.pro.
Enjoy!
David
-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
2642 Bradbury Court, Fort Collins, CO 80521
Phone: 970-221-0438 Fax: 970-221-4762
E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com
-----------------------------------------------------------
|
|
|