<div dir="ltr">Hi Karin,<div>I have tried this simple script but still it doesn't work. I can't produce the markers with different colors.</div><div><br></div><div>Thanks.</div><div>SB</div><div><br></div><div>begin<br><br> x = (/0.205, 0.280/)<br> y = (/0.155, 0.050/)<br><br> wks = gsn_open_wks("X11","Test_fig") ; send graphics to PNG file<br><br> res = True<br> res@gsnDraw = False ; don't draw<br> res@gsnFrame = False ; don't advance frame<br><br> res@xyMarkLineModes = (/"Markers","Markers"/) ;-- set mark line mode for both variables<br> res@xyMarkers = (/ 10, 16/) ;-- choose marker types<br> res@xyMarkerColors = (/"red","blue"/) ;-- choose marker colors<br><br> plot = gsn_csm_xy (wks,x,y,res)<br><br>draw(plot)<br>frame(wks)<br>end<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 19, 2019 at 4:00 PM Karin Meier-Fleischer via ncl-talk <<a href="mailto:ncl-talk@ucar.edu">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 bgcolor="#FFFFFF">
Hi SB,<br>
<br>
to use two different markers with different colors set the resources
of xyMarkLineModes and xyMarkers like below.<br>
<br>
<font color="#3333ff"><tt> res@xyMarkLineModes = <b>(/"Markers","Markers"/)</b>
;-- set mark line mode for both variables</tt><tt><br>
</tt><tt> res@xyMarker<b>s</b> = (/ 10, 16/)
;-- choose marker types </tt><tt><br>
</tt><tt> res@xyMarkerColors = (/"red","blue"/) ;--
choose marker colors</tt></font><br>
<br>
-Karin<br>
<br>
<div class="gmail-m_-2665531694252477999moz-cite-prefix">Am 19.07.19 um 16:41 schrieb S Br via
ncl-talk:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi All,
<div>Is it possible to draw markers with different color in a XY
plot. I am trying as given below but doesn't work.</div>
<div><br>
</div>
<div>Thanks.</div>
<div>SB</div>
<div><br>
</div>
<div>x = (/0.205, 0.280, 0.211, 0.229, 0.283, 2.141, 2.160/)<br>
<div>y = (/0.155, 0.050, 0.151, 0.159, 0.053, 0.151, 0.150/)<br>
</div>
</div>
<div><br>
</div>
<div> res@xyMarkLineModes = "Markers"<br>
res@xyMarker = 9<br>
res@xyMarkerSizeF = 0.02 ;
default 0.01<br>
res@xyMarkerThicknessF = 2.0 ;
default 1.00<br>
res@xyMarkerColors = (/ "green4", "red", "blue",
"orange", \<br>
"cyan2", "darkorchid2",
"brown"/)<br>
<br>
plot = gsn_csm_xy (wks,x,y,res)<br>
<br>
draw(plot)<br>
frame(wks)<br>
end<br>
</div>
</div>
<br>
<fieldset class="gmail-m_-2665531694252477999mimeAttachmentHeader"></fieldset>
<pre class="gmail-m_-2665531694252477999moz-quote-pre">_______________________________________________
ncl-talk mailing list
<a class="gmail-m_-2665531694252477999moz-txt-link-abbreviated" href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>
List instructions, subscriber options, unsubscribe:
<a class="gmail-m_-2665531694252477999moz-txt-link-freetext" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></pre>
</blockquote>
<br>
</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>