clipping with polyfill [message #29950] |
Tue, 26 March 2002 10:50 |
Charlie Zender
Messages: 8 Registered: October 1996
|
Junior Member |
|
|
Hi,
I am using IDL 5.2 under Linux and having problems with clipping.
I am using polyfill to shade regions on an xy plot.
Some of the polygon vertices fall outside the axis ranges and so
I want to clip the polyfill so that the shading stays within the axes,
and so that the filling does not obscure the tickmarks on the axes,
so I do
clp=[!x.crange(0)+0.5,!y.crange(0),!x.crange(1)-0.5,!y.crang e(1)]
polyfill,x,y,clip=clp
but the results show no clipping. the values of !x,y.crange all
look reasonable so I am confused why the clipping does not appear to
work either on screen or when sent to postscript. Any ideas?
I was also surprised that postscript printing does not support the
pattern fill option in polyfill, but at least the manual documented
this "feature".
Thanks,
Charlie
--
Charlie Zender, zender at uci dot edu, (949) 824-2987, Department of
Earth System Science, University of California, Irvine CA 92697-3100
|
|
|