<div dir="ltr"><div><div><div><div>FYI: A &#39;scatter&#39; example is available at:<br>       <a href="http://www.ncl.ucar.edu/Applications/scatter.shtml">http://www.ncl.ucar.edu/Applications/scatter.shtml</a><br><br></div>See Example 12<br><br></div>The &#39;driver&#39; has a few changes to illustrate making lines and markers different colors, sizes and thicknesses.<br><br></div>THX to Rashed and Alan!<br><br></div>ncl-talk<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 26, 2016 at 11:24 AM, Alan Brammer <span dir="ltr">&lt;<a href="mailto:abrammer@albany.edu" target="_blank">abrammer@albany.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">You’ve already answered your own question which is good, but I took a couple minutes to provide an alternative (possibly more flexible) method of accomplishing your goals.<div><br></div><div>Using gsn_add_polyline() to draw the bars, and putting them into respective procedures to make things more modular and generic. </div><div><br></div><div>The functions are incredibly simple and don’t check for many potential errors but are an example of how to break things up a bit more and make it more generic which can help future scripts. </div><div><br></div><div><br></div><div><br></div><div></div></div><br><div style="word-wrap:break-word"><div></div><div><br></div><div><br></div><div><br></div><div>Alan</div><div><br></div><div><br><div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><span class="m_7720519354293972486Apple-style-span" style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px"><div style="word-wrap:break-word">##############################<br>Alan Brammer,<div>Post-Doc Researcher</div><div><br></div><div>Department of Atmospheric and Environmental Sciences,<br>University at Albany, State University of New York, Albany, NY, 12222<div><a href="mailto:abrammer@albany.edu" target="_blank">abrammer@albany.edu</a><br>##############################</div></div></div></span></div></div>
</div>
<br><div><blockquote type="cite"><div>On 25 Nov 2016, at 13:33, Rashed Mahmood &lt;<a href="mailto:rashidcomsis@gmail.com" target="_blank">rashidcomsis@gmail.com</a>&gt; wrote:</div><br class="m_7720519354293972486Apple-interchange-newline"><div><div dir="ltr"><div><div>I figured out how to plot this &quot;double error bar&quot; thing.<br></div>I am attaching the script and the plot if someone else would want to plot a similar thing. I guess, if i have not missed it, there is probably no such example on NCL web.<br><br></div>Some explanation: The tric is to plot each error bar as a separate scatter plot with same resources (especially trYMin/Max and trXMin/Max)<br><div><div><div><div><div><div>A loop can be used if we have many more data values. I hope the script is simple enough for everyone to understand it.<br><br></div><div>Best,<br></div><div>Rashed<br></div><div><br><br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Rashed Mahmood</b> <span dir="ltr">&lt;<a href="mailto:rashidcomsis@gmail.com" target="_blank">rashidcomsis@gmail.com</a>&gt;</span><br>Date: Thu, Nov 24, 2016 at 2:19 PM<br>Subject: double error bars on a scatter plot<br>To: &quot;<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>&quot; &lt;<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>&gt;<br><br><br><div dir="ltr"><div><div><div><div>Hello everyone,<br><br></div>I am trying add two polylines at each marker of a scatter plot, however not getting it right.<br></div>A very simple script that I am trying to work with is attached along with the resultant figure. I manually marked with red lines what I hope to get.<br><br></div>Does anyone has any ideas on this?<br></div><div><br>Best,<br></div>Rashed  <br></div>
</div><br></div></div></div></div></div></div></div>
<span id="m_7720519354293972486cid:BFAA3908-CD31-4C03-893F-BC167040AA53@eas.albany.edu">&lt;test_scatter_plot_2.ncl&gt;</span><span id="m_7720519354293972486cid:1F70C0BF-AC67-44CC-9F9C-F3B063D70AC1@eas.albany.edu">&lt;<wbr>test_scatter.pdf&gt;</span>_____________<wbr>______________________________<wbr>____<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" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br></div></blockquote></div><br></div></div><br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>