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

Home » Public Forums » archive » TV and PostScript
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
TV and PostScript [message #7866] Tue, 21 January 1997 00:00
aspinelli is currently offline  aspinelli
Messages: 4
Registered: August 1996
Junior Member
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???

Help is quite appreciated...

Thanks in advance.

Andrea


Andrea Spinelli - Ismes Spa. 9, Via Pastrengo, 24068 Seriate BG, Italy
tel.: +39-35-307777 fax.: +39-35-302999 e-mail: aspinelli@ismes.it
"Truth hurts, but pimples much more"
Re: TV and PostScript [message #7868 is a reply to message #7866] Tue, 21 January 1997 00:00 Go to previous message
davidf is currently offline  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
-----------------------------------------------------------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: TV and PostScript
Next Topic: IDL FAQ

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

Current Time: Fri Oct 10 15:52:07 PDT 2025

Total time taken to generate the page: 0.64314 seconds