<div dir="ltr">Hi Alessandra,<div>Thanks for sending an easy-to-run example of the issue you are facing. I replied to a similar query this past September:</div><div><a href="http://mailman.ucar.edu/pipermail/ncl-talk/2019-September/015579.html">http://mailman.ucar.edu/pipermail/ncl-talk/2019-September/015579.html</a><br></div><div><br></div><div>In short, you have to create 2D arrays of the input x/y axis values, as xyMarkers will assign a different marker for an array dimensioned (M,N) for every index N. Using your example, the following modifications result in the desired marker changes:</div>mkres = True<br>mkres@xyMarkLineMode = "Markers"<br>mkres@xyMarkerSizeF = 0.02 ; Marker size (default 0.01)<br>mkres@xyMarkers = ispan(2,11,1)<br>mkres@xyMonoMarker = False<br><br>tind2 = new((/dimsizes(tind),2/),typeof(tind))<br>tind2(:,0) = (/ tind /)<br>pind2 = new((/dimsizes(pind),2/),typeof(pind))<br>pind2(:,0) = (/ pind /)<br><br><div>oplots = gsn_csm_xy(wks,pind2,tind2,mkres) <br></div><div><br></div><div>Hope that helps!</div><div>Adam</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 3, 2020 at 1:41 PM Alessandra Giannini 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 style="overflow-wrap: break-word;"><div><br></div>hello everyone,<div><br></div><div>I have a problem that has been nagging me for a while…</div><div>Here it is in its simplified form — </div><div>I would like to make a scatter plot of two variables, with each point in the plot represented by a different marker, selected from this list of possible markers:</div><div><<a href="http://www.ncl.ucar.edu/Document/Graphics/Images/markers.png" target="_blank">http://www.ncl.ucar.edu/Document/Graphics/Images/markers.png</a>></div><div><br></div><div>These are the plot resources I set:</div><div><br></div><div><div>mkres = True</div><div>mkres@gsnDraw = False ; need these to wait</div><div>mkres@gsnFrame = False</div><div><br></div><div>mkres@xyMarkLineMode = "Markers"</div><div>mkres@xyMarkerSizeF = 0.01 ; Marker size (default 0.01)</div><div>mkres@xyMarkers = ispan(2,16,1) </div></div><div><br></div><div>following various examples in plot types/scatter plots.</div><div><br></div><div>But instead of the expected different markers, I get the same marker, corresponding to the first value in “ispan(2,16,1)", for all points.</div><div>Is there some "sticky” default resource that needs to be unset?</div><div><br></div><div>I am running NCL version 6.3.0</div><div><br></div><div>Attached are the entire script, and a sample output.</div><div><br></div><div>Your help is much appreciated — </div><div><br>
warm regards, alessandra</div><div><br></div><div><br></div><div><br></div><div><br></div><div></div></div><div style="overflow-wrap: break-word;"><div></div><div><br></div><div></div></div><div style="overflow-wrap: break-word;"><div></div><div><br></div><div><br></div><div><br></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><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist, </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a> </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>