Re: Contour shading (patterns) [message #2221] |
Mon, 20 June 1994 10:36  |
sterne
Messages: 15 Registered: March 1992
|
Junior Member |
|
|
>>>> > "Andy" == Andrew F. Loughe <andy@pong.gsfc.nasa.gov> asks:
|> I post this about every 3 months... does anyone yet have a solution?
|>
|> The problem is to produce a simple contour plot where, instead of filling
|> between the contour lines with different colors, one fills between the
|> contour lines with a specified dot or line pattern.
|>
>>>> > "David" == David Landers <landers@tsunami.dseg.ti.com> responds:
David> Get PV-WAVE. :) Use POLYCONTOUR, Pattern=whatever
David> Of course, POLYCONTOUR doesn't handle open contours, so you have
David> to use the 'surround your data' trick (v4.2 User's Guide,
David> Chapter 4).
David> POLYCONTOUR does have some trouble with some kinds of data (due
David> to assumptions it makes about which contour regions are "on top"
David> or something like that.
Of course, IDL has polycontour as well, so if you can get at the
contours, you can use this approach there as well.
A while ago, I posted a hacked version of polycontour for PV-Wave and
IDL which allows a choice of user-specified fill pattern, and which
closes open contours without having to resort to the data-distorting
"surround your data" trick. It also fills the contours in the correct
order so the above mentioned "trouble with some kinds of data" is
eliminated (e.g. it will plot a volcano-like function without losing the
dip in the middle). If anybody is interested in a copy, send me e-mail.
If there is enough interest, I'll post it again.
Phil
--
------------------------------------------------------------ ---------
Philip Sterne | sterne@dublin.llnl.gov
Lawrence Livermore National Laboratory | Phone (510) 422-2510
Livermore, CA 94550 | Fax (510) 422-7300
|
|
|