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

Home » Public Forums » archive » Contour /Fill for Laserwriters
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
Contour /Fill for Laserwriters [message #2787] Thu, 15 September 1994 00:31 Go to next message
i51bkomm is currently offline  i51bkomm
Messages: 1
Registered: September 1994
Junior Member
Hi Everybody!

I want to produce a filled contour with IDL as a
postscript file for a HP III Si - Laserprinter.
I have a 100x300 array containing only 0 and 1.
I want the 0 to be plottet white and the 1 black.
On the display it works fine by typing

contour,datavector,/fill

but producing a postscript file do not reproduce
the picture as a hardcopy. The black as the white
parts have the same color (white) being obly
divided by a small black border line. What do I
have to do to get the black-filled picture on
my printer?

Thanks for the help.

Andreas Tolk

tolk@anna.informatik.unibw-muenchen.de
or Reply on this!
Re: Contour /Fill for Laserwriters [message #2791 is a reply to message #2787] Thu, 15 September 1994 06:35 Go to previous message
andy is currently offline  andy
Messages: 31
Registered: November 1993
Member
In article <358t8k$ii7@infosrv.rz.unibw-muenchen.de>, i51bkomm@kommsrv.rz.unibw-muenchen.de (Andreas Tolk) writes:
> Hi Everybody!
>
> I want to produce a filled contour with IDL as a
> postscript file for a HP III Si - Laserprinter.
> I have a 100x300 array containing only 0 and 1.
> I want the 0 to be plottet white and the 1 black.
> On the display it works fine by typing
>
> contour,datavector,/fill
>
> but producing a postscript file do not reproduce
> the picture as a hardcopy. The black as the white
> parts have the same color (white) being obly
> divided by a small black border line. What do I
> have to do to get the black-filled picture on
> my printer?


I can't be sure what caused the problem-- maybe a device, /color call
would have helped. Anyway, here is a simple example that produces a
contour plot with black and white shading. If using an idea from
this example doesn't help, then I am not quite sure what to try.

set_plot, 'ps'
device, /color
tvlct, [0,255], [0,255], [0,255]
black=0
white=1

contour, dist(20), nlevels=5, c_color=[black,white], /fill, /xs, /ys
device, /close

Hope this helps. :-)

Andy

--
,__o Andrew F. Loughe (Mail Code 971) voice: (301) 286-5899
-\_<, NASA Goddard Space Flight Center fax : (301) 286-0240
(*)/'(*) Greenbelt, MD 20771 email: andy.loughe@gsfc.nasa.gov
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: sound card interface?
Next Topic: Re: IDL license prices

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

Current Time: Wed Oct 08 17:09:20 PDT 2025

Total time taken to generate the page: 0.00677 seconds