Contour /Fill for Laserwriters [message #2787] |
Thu, 15 September 1994 00:31  |
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  |
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
|
|
|