I am trying to make a greyscale contour by specifying contour levels to be drawn and colors to be used, but I run into a few problems when I use the following command:
icontour,my_data,x_grid,y_grid,$
xtitle=my_xtitle,ytitle=my_ytitle,min_value=my_minval,$
xrange=[xmin,xmax],yrange=[ymin,ymax],/fill,$
c_value=my_contour_levels,rgb_indices=my_color_arr
First, the combination of keywords c_value and rgb_indices gives me the following error message, and
no contour is drawn:
Unknown System Error:
IDLGRCONTOUR::SETPROPERTY: Invalid internal color.
Why does this not work?
Second, I want to add a color bar to the contour plot, but the above command does not change value for
"Use palette color" to "True" in the icontour interface, which would be needed. According to the IDL Help,
setting keyword "rgb_indices" should activate the palette color mode. What am I doing wrong, or do I need to create the color bar manually?
|