<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class="">
<div><br class=""><blockquote type="cite" class=""><div class="">On Feb 3, 2020, at 6:46 PM, Adam Phillips <<a href="mailto:asphilli@ucar.edu" class="">asphilli@ucar.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">Hi Alessandra,<div class="">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 class=""><a href="http://mailman.ucar.edu/pipermail/ncl-talk/2019-September/015579.html" class="">http://mailman.ucar.edu/pipermail/ncl-talk/2019-September/015579.html</a><br class=""></div><div class=""><br class=""></div><div class="">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 class="">mkres@xyMarkLineMode   = "Markers"<br class="">mkres@xyMarkerSizeF     = 0.02           ; Marker size (default 0.01)<br class="">mkres@xyMarkers = ispan(2,11,1)<br class="">mkres@xyMonoMarker = False<br class=""><br class="">tind2 = new((/dimsizes(tind),2/),typeof(tind))<br class="">tind2(:,0) = (/ tind /)<br class="">pind2 = new((/dimsizes(pind),2/),typeof(pind))<br class="">pind2(:,0) = (/ pind /)<br class=""><br class=""><div class="">oplots = gsn_csm_xy(wks,pind2,tind2,mkres)  <br class=""></div><div class=""><br class=""></div><div class="">Hope that helps!</div><div class="">Adam</div><div class=""><br class=""></div></div><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><div class="gmail_quote" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><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" class="">ncl-talk@ucar.edu</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><div style="overflow-wrap: break-word;" class=""><div class=""><br class=""></div>hello everyone,<div class=""><br class=""></div><div class="">I have a problem that has been nagging me for a while…</div><div class="">Here it is in its simplified form — </div><div class="">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 class=""><<a href="http://www.ncl.ucar.edu/Document/Graphics/Images/markers.png" target="_blank" class="">http://www.ncl.ucar.edu/Document/Graphics/Images/markers.png</a>></div><div class=""><br class=""></div><div class="">These are the plot resources I set:</div><div class=""><br class=""></div><div class=""><div class="">mkres = True</div><div class="">mkres@gsnDraw  = False                          ; need these to wait</div><div class="">mkres@gsnFrame = False</div><div class=""><br class=""></div><div class="">mkres@xyMarkLineMode   = "Markers"</div><div class="">mkres@xyMarkerSizeF     = 0.01           ; Marker size (default 0.01)</div><div class="">mkres@xyMarkers = ispan(2,16,1) </div></div><div class=""><br class=""></div><div class="">following various examples in plot types/scatter plots.</div><div class=""><br class=""></div><div class="">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 class="">Is there some "sticky” default resource that needs to be unset?</div><div class=""><br class=""></div><div class="">I am running NCL version 6.3.0</div><div class=""><br class=""></div><div class="">Attached are the entire script, and a sample output.</div><div class=""><br class=""></div><div class="">Your help is much appreciated — </div><div class=""><br class="">warm regards, alessandra</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""></div></div><div style="overflow-wrap: break-word;" class=""><div class=""></div><div class=""><br class=""></div><div class=""></div></div><div style="overflow-wrap: break-word;" class=""><div class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div></div>_______________________________________________<br class="">ncl-talk mailing list<br class=""><a href="mailto:ncl-talk@ucar.edu" target="_blank" class="">ncl-talk@ucar.edu</a><br class="">List instructions, subscriber options, unsubscribe:<br class=""><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div><br clear="all" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br class=""></div><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">--<span class="Apple-converted-space"> </span></span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><div dir="ltr" class="gmail_signature" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class=""><span class=""><font color="#888888" class="">Adam Phillips<span class="Apple-converted-space"> </span><br class=""></font></span></div><span class=""><font color="#888888" class="">Associate Scientist, <span class="Apple-converted-space"> </span></font></span><span class=""><font color="#888888" class="">Climate and Global Dynamics Laboratory, NCAR<br class=""></font></span></div></div><div class=""><span class=""><font color="#888888" class=""><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank" class="">www.cgd.ucar.edu/staff/asphilli/</a>  <span class="Apple-converted-space"> </span></font></span><span class=""><font color="#888888" class="">303-497-1726<span class="Apple-converted-space"> </span></font></span></div></div></div></div></div></div></div></div></div></div></blockquote></div><br class=""></div></body></html>