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

Home » Public Forums » archive » shading in contour plots
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: shading in contour plots [message #44725 is a reply to message #44648] Mon, 11 July 2005 08:46 Go to previous messageGo to previous message
R.G. Stockwell is currently offline  R.G. Stockwell
Messages: 363
Registered: July 1999
Senior Member
"C. Hoyle" <c.hoyle@pmodwrc.ch> wrote in message
news:470ec27d.0507110036.44976c0d@posting.google.com...

> I think this better describes my problem. Consider the following:
...
> If you only use levels 0 and 1, the line on the far left does not show
> up. If you use levels in between 1 and 0, the boundaries of the other
> rectangles are no longer properly defined. This is not such a problem
> with rectangles, but if the shapes are more complicated, then the
> result is not
> good. I dont think that this is a problem with nlevels (I dont use it)
> or /fill (I use /cell_fill).
> cheers,
> Chris


Offhand, you can try some other approaches, such as something like:
IDL> shade_surf,sf,shade=bytscl(sf),az=0,ax=90,ztickname=strarr(2 0)+' '

where you may want to fiddle with the byte scaling. If you data is 0 and 1,
you could just do a "shade = sf*250" or something like that.
Also, one could use tvimage or tv to plot the image (again with appropriate
bytscling)

However, if you want to accurately shade every rectangle, you may want to
polyshade each region by itself (easy for rectangles, more difficult for
arbitrary
shapes).

Cheers,
bob
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: validating user input
Next Topic: Re: BAR_PLOT restricted to 60 element ARRAY??

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

Current Time: Sun Oct 12 06:27:38 PDT 2025

Total time taken to generate the page: 0.16164 seconds