strange results using max_value in a contour plot [message #32381] |
Fri, 04 October 2002 13:04  |
ddye
Messages: 5 Registered: October 2002
|
Junior Member |
|
|
IDL version 5.4 (IRIX mipseb)
I'm encountering strange results using max_value in a contour plot.
I'm attempting to set unwanted data to a # outside of the range
(larger than max_value). The funny thing is the contour works fine
_unless_ the unwanted values are _over_ the max_value. If I set it to
zero: it plots as zero, 1/2 of the range: the appropriate color, a
little over the max_value and the whole contour plots white (which is
appropriate for zero values:.0000001). I read in previous posts that
this was a legitimate use for max_value, what the heck is going on?
Here is the code in question:
;********** snip ******************
;the following can be used to set the bathymetry to any #
;// v-- (changed this to lots of values)
for in=0,58 do begin
tmparr4[60-in,bathy[in]:*]=9.99E29
endfor
;************************************** row 2 col 3
contour,tmparr4,distance,depth $
,xrange=[1,60],yrange=[40,0] $
,titl=titl4 $
,levels=scale4zed $
,c_labels=clab $
,C_COLORS=[addC,cvec1] $
,/fill, /closed $
,max_value=ignore $
,FONT=0
|
|
|