<div><font face="tahoma, arial, helvetica, sans-serif"><span style="font-size: 12px;">Ciao Giulio,</span></font></div><div><font face="tahoma, arial, helvetica, sans-serif"><span style="font-size: 12px;"><br></span></font></div><div><font face="tahoma, arial, helvetica, sans-serif"><span style="font-size: 12px;">I had to make a plot very similar to yours, and I found this example (</span></font><span style="font-size: 12px; font-family: tahoma, arial, helvetica, sans-serif;">https://www.ncl.ucar.edu/Applications/Scripts/scatter_7.ncl). Basically, you must create an array with the values to be plotted, and then use the function transpose (</span><font face="tahoma, arial, helvetica, sans-serif"><span style="font-size: 12px;">https://www.ncl.ucar.edu/Document/Functions/Contributed/transpose.shtml</span></font><span style="font-family: tahoma, arial, helvetica, sans-serif; font-size: 12px;">) to draw the plot.</span></div><div><span style="font-family: tahoma, arial, helvetica, sans-serif; font-size: 12px;"><br></span></div><div><span style="font-family: tahoma, arial, helvetica, sans-serif; font-size: 12px;">Hope this helps,</span></div><div><span style="font-family: tahoma, arial, helvetica, sans-serif; font-size: 12px;">Giorgio</span></div>
<blockquote style="font-family: tahoma, arial, helvetica, sans-serif; font-size: 12px;">
----Messaggio originale----
<br>Da: ncl-talk@mailman.ucar.edu
<br>Data: 6-ott-2020 18.34
<br>A: <ncl-talk@ucar.edu>
<br>Ogg: [ncl-talk] Plotting markers with different colors
<br>
<br>Dears all,
<br>in a script of mine I have a 1-dimensional array like this:
<br>
<br>a=(/1,2,3,1,2,3,3,2,1/)
<br>
<br>I would like to plot its value as some markers having different colors
<br>(for exemple, value 1 in blue, 2 in green and 3 in red).
<br>I have already tried to plot them with "gsn_coordinates" procedure, by
<br>setting:
<br>
<br>1) a1=where(a.eq.1,a,a@_FillValue)
<br>res@gsMarkerColor = "blue"
<br>gsn_coordinates(wks,map,a1,res)
<br>2) a2=where(a.eq.2,a,a@_FillValue)
<br>res@gsMarkerColor = "green"
<br>gsn_coordinates(wks,map,a2,res)
<br>3) a3=where(a.eq.3,a,a@_FillValue)
<br>res@gsMarkerColor = "red"
<br>gsn_coordinates(wks,map,a3,res)
<br>
<br>I eventually got three different plots: the first for a1, the second for
<br>a2 and the third for a3.
<br>I really want these images to be plotted on the same map; how can I proceed?
<br>
<br>Thanks,
<br>Giulio
<br>
<br>_______________________________________________
<br>ncl-talk mailing list
<br>ncl-talk@mailman.ucar.edu
<br>List instructions, subscriber options, unsubscribe:
<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a>
<br>
<br>
</blockquote>
<br>