[ncl-talk] dividing color map to intervals

Rick Brownrigg brownrig at ucar.edu
Fri Nov 22 11:52:54 MST 2019


Hi,

There are a number of examples of such scatter plots at:

    http://ncl.ucar.edu/Applications/scatter.shtml

Perhaps there's one similar to what you want to do.

Rick


On Fri, Nov 22, 2019 at 11:44 AM M P via ncl-talk <ncl-talk at ucar.edu> wrote:

> 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
>>
>> _______________________________________________
> 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/06d3b671/attachment.html>


More information about the ncl-talk mailing list