[ncl-talk] dividing color map to intervals

M P mzp3769 at gmail.com
Fri Nov 22 11:43:18 MST 2019


Yes, but the issue is that I don't want to plot contours, but a scatterplot
so that points in various ranges are colored differently.

On Fri, Nov 22, 2019 at 8:34 AM Dennis Shea <shea at ucar.edu> wrote:

> Please read NCL documentation.
>
> NCL automatically spans all color maps.
>
>   res at cnLevelSelectionMode = "ManualLevels"     ; set manual contour levels
>   res at cnMinLevelValF       =                    ; set min contour level
>   res at cnMaxLevelValF       =                    ; set max contour level
>   res at cnLevelSpacingF      =                    ; set contour spacing
>
>
>
> On Thu, Nov 21, 2019 at 8:11 PM M P via ncl-talk <ncl-talk at ucar.edu>
> wrote:
>
>> Hello,
>> I define a colormap as
>>
>> gsn_define_colormap(wks,"WhiteBlueGreenYellowRed")
>>
>> I want to divide it into e.g. 20 equal intervals so I can plot data in
>> different ranges
>> with different colors.
>>
>> Can you help how to e.g. create an array colors[i] that would span the
>> whole range? Or there is another way to do it?
>>
>> Thanks,
>> Mark
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20191122/fe24f454/attachment.html>


More information about the ncl-talk mailing list