>I have faced a problem regarding a plot with a gray scale.
>I set "Grey58" and "Grey88" color in res_at_xyMarkerColor.
>But I get some dark and light purple color markers. I also
>try to used "gray56" and "gray86" but I get same result.
>I past the figure below. I am using the ncl version ncl-4.2.0.a030_64
>I also tried to do that in NCL version ncl-4.2.0.a033_64
>but the result is same.
===
I am speculating.
NCL uses the Graphical Kernal System. Each
work station can have one color map associated with it.
If you have not explicitly specified a color map
then you get the default:
http://www.ncl.ucar.edu/Document/Graphics/ColorTables/default.shtml
This has gray colors but you are getting non-gray colors.
Hence, I speculate that you have specified a color map with
no gray colors. When you specify gray56, gray86 NCL
tries to map gray56, gray86 into the color table associated
with your workstation. eg: gray86 may map into purple. :-(
So, you could add gray56, gray86 to the current color table
something like:
i = NhlNewColor(wks,0.8,0.8,0.8) will add the gray.
j = NhlNewColor(wks,0.6,0.6,0.6) will add another gray.
There are many ways to mangle color tables
http://www.ncl.ucar.edu/Applications/color.shtml
Also, Grayscale Colormaps
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Feb 21 2007 - 17:58:39 MST
This archive was generated by hypermail 2.2.0 : Thu Feb 22 2007 - 14:54:01 MST