Polyfill, z-buffer & postscript [message #33793] |
Mon, 27 January 2003 04:28  |
Isa Usman
Messages: 13 Registered: October 2001
|
Junior Member |
|
|
Hi,
I am using polyfill to plot radar scans directly to postscript. The
resulting files are quite big (~1MB) and I need to make them smaller.Is
there a simple way?
I thought about using the z-buffer to do the plotting then saving it to
postscript like this
loadct,13
!P.MULTI=[0,2,1]
set_plot,'Z'
erase,255
device,set_font='Helvetica',/TT_FONT
device,z_buffering=0
......call to plotting routines (plot,polyfill)
a=tvrd(true=3)
close
set_plot,'ps'
device,/helvetica,/color,bits=8,/encapsulated,xsize=14.8,ysi ze=10.5
device,filename='test.eps'
tv,a,true=3
device,/close
!P.MULTI=0
....the resulting colors are all messed up.
Thanks in advance
Isa
|
|
|
Re: Polyfill, z-buffer & postscript [message #33828 is a reply to message #33793] |
Sun, 02 February 2003 18:47  |
Chris[1]
Messages: 23 Registered: January 2003
|
Junior Member |
|
|
It's been a long time since I used the postscript device (and I don't have
my machine handy to double check), but I noticed you had the "bits=8" flag
set in the device call when you are writing out true color (24 bit ) data.
Could this be the problem?
Chris
"Isa Usman" <eepisu@bath.ac.uk> wrote in message
news:b138lk$1cju@newton.cc.rl.ac.uk...
> Hi,
>
> I am using polyfill to plot radar scans directly to postscript. The
> resulting files are quite big (~1MB) and I need to make them smaller.Is
> there a simple way?
>
> I thought about using the z-buffer to do the plotting then saving it to
> postscript like this
>
> loadct,13
> !P.MULTI=[0,2,1]
> set_plot,'Z'
> erase,255
> device,set_font='Helvetica',/TT_FONT
> device,z_buffering=0
>
> ......call to plotting routines (plot,polyfill)
>
> a=tvrd(true=3)
> close
>
> set_plot,'ps'
> device,/helvetica,/color,bits=8,/encapsulated,xsize=14.8,ysi ze=10.5
> device,filename='test.eps'
> tv,a,true=3
> device,/close
>
> !P.MULTI=0
>
> ....the resulting colors are all messed up.
>
> Thanks in advance
>
> Isa
>
>
|
|
|