More Q's on TV and Postscript [message #2711] |
Tue, 30 August 1994 21:11  |
rouse
Messages: 17 Registered: July 1994
|
Junior Member |
|
|
Now that I can actually see the postscript output I've three more questions.
1. How do I get the picture to be black on white? If I try this trick
a(where(a eq 0B)) = 225B
then any plots that are with the picture disappear since plots are
done in black. This also makes the picture look very different! I've
also tried reloading the color arrays after set_plot,'ps' with and
without giving /COLOR in the call to DEVICE. What's the catch?
2. I would also like to use PLOTS to draw circles and things on the picture.
How can I position them correctly given that the position and size of the
picture is specified in centimeters (or inches) not NORMAL, DATA, or even
DEVICE coordinates?
3. Wouldn't it be nice if TV understood all of the !p variable especially
!p.multi. Has anyone developed or know of a procedure, say PTV, that works
like PLOT (or PLOTS) but draws an image instead of a graph? If you've only
one picture then things go smoothly, but if you what a graph with a picture
next to it or some other combination things get complicated.
I think that I can do what I want in the window, but the conversion to
postsrcipt does not reproduce what's in the window. I've tried using
TVRD but then you have the black-on-white problem again.
Any hints &/or suggestions are welcome.
Thanks, Roger
|
|
|
Re: More Q's on TV and Postscript [message #2901 is a reply to message #2711] |
Wed, 31 August 1994 23:30  |
stl
Messages: 70 Registered: February 1994
|
Member |
|
|
In article <340vtmINN5tv@lanews.la.asu.edu> rouse@sevens.la.asu.edu (Roger Rouse) writes:
>
>
> Now that I can actually see the postscript output I've three more questions.
>
> 1. How do I get the picture to be black on white? If I try this trick
>
> then any plots that are with the picture disappear since plots are
> done in black. This also makes the picture look very different! I've
> also tried reloading the color arrays after set_plot,'ps' with and
> without giving /COLOR in the call to DEVICE. What's the catch?
>
If there are plots within the picture, I am not sure. Not really sure
what you are asking though, but it sounds like you have plots overlayed
on pictures, and want to output them onto a B&W printer. I would
suggest setting the plot color to WHITE, so then plots on top of
pictures just are white lines on the picture. (however, if you plot is
bigger than your image you will have a mess...)
> 2. I would also like to use PLOTS to draw circles and things on the picture.
> How can I position them correctly given that the position and size of the
> picture is specified in centimeters (or inches) not NORMAL, DATA, or even
> DEVICE coordinates?
Normal coordinates should work on PS output devices. Just remember that
they are normal to the page size, which is not the same as the window
size. I generally try to do EVERYTHING in normal coordinates, that way
things are at least relative to each other...
>
> 3. Wouldn't it be nice if TV understood all of the !p variable especially
> !p.multi. Has anyone developed or know of a procedure, say PTV, that works
> like PLOT (or PLOTS) but draws an image instead of a graph? If you've only
> one picture then things go smoothly, but if you what a graph with a picture
> next to it or some other combination things get complicated.
If you are just using images, then its not a big deal. Just use the TV
position that is built into TV (ie: the 1 number positioning system)
Once you start mixing images and plots, I would suggest building a
window of dimensions that are proprotional to a paper size, and then
just position the plots/Images on the window, using ONLY NORMAL
coordinates. Or if possible, display it all to a window, then TVRD it
all, but this loses resolution and like you said sometimes has color
problems (I have never really had the color problem)
>
Hope this helps a little bit. The PostScript stuff can be a real
frustrating headache, but most things are possible if you get creative
and are patient.
-stephen
--
Stephen C Strebel / SKI & TELE TO DIE
strebel@sma.ch / and
Swiss Meteorological Institute, Zuerich / LIVE TO TELL ABOUT IT
01 256 93 85 / (and pray for snow)
|
|
|