<div dir="ltr">Yes, but in all examples that I can find color matrix is defined <div>e.g.</div><pre style="color:rgb(0,0,0);white-space:pre-wrap">res@xyMarkerColors     = (/"darkgoldenrod","darkgreen","coral4", \ 
                             "cyan3","firebrick1","darkslateblue","limegreen",     \ </pre><div><span style="color:rgb(0,0,0);white-space:pre-wrap">                             "lightgoldenrod","darkseagreen1","lightsteelblue1"/)</span> </div><div><br></div><div>rather than as a colormap/palette</div><div>gsn_define_colormap(wks,"WhiteBlueGreenYellowRed")<br></div><div>Is there a way to divide a palette to e.g. 20 intervals. Or am I missing an example that you are referring to?</div><div>Thanks</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 22, 2019 at 11:53 AM Rick Brownrigg <<a href="mailto:brownrig@ucar.edu">brownrig@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>There are a number of examples of such scatter plots at:</div><div><br></div><div>    <a href="http://ncl.ucar.edu/Applications/scatter.shtml" target="_blank">http://ncl.ucar.edu/Applications/scatter.shtml</a></div><div><br></div><div>Perhaps there's one similar to what you want to do.</div><div><br></div><div>Rick</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 22, 2019 at 11:44 AM M P via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">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. </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 22, 2019 at 8:34 AM Dennis Shea <<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Please read NCL documentation.</div><div><br></div><div>NCL automatically spans all color maps.</div><div><pre>  res@cnLevelSelectionMode = "ManualLevels"     ; set manual contour levels
  res@cnMinLevelValF       =                    ; set min contour level
  res@cnMaxLevelValF       =                    ; set max contour level
  res@cnLevelSpacingF      =                    ; set contour spacing
</pre></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 21, 2019 at 8:11 PM M P via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div>I define a colormap as</div><div><br></div><div>gsn_define_colormap(wks,"WhiteBlueGreenYellowRed")<br></div><div><br></div><div>I want to divide it into e.g. 20 equal intervals so I can plot data in different ranges</div><div>with different colors. </div><div><br></div><div>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?</div><div><br></div><div>Thanks,</div><div>Mark</div></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div>
</blockquote></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div>
</blockquote></div>