[ncl-talk] Fwd: double error bars on a scatter plot
Dennis Shea
shea at ucar.edu
Tue Nov 29 12:57:48 MST 2016
FYI: A 'scatter' example is available at:
http://www.ncl.ucar.edu/Applications/scatter.shtml
See Example 12
The 'driver' has a few changes to illustrate making lines and markers
different colors, sizes and thicknesses.
THX to Rashed and Alan!
ncl-talk
On Sat, Nov 26, 2016 at 11:24 AM, Alan Brammer <abrammer at albany.edu> wrote:
> 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.
>
> Using gsn_add_polyline() to draw the bars, and putting them into
> respective procedures to make things more modular and generic.
>
> 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.
>
>
>
>
>
>
>
> Alan
>
>
> ##############################
> Alan Brammer,
> Post-Doc Researcher
>
> Department of Atmospheric and Environmental Sciences,
> University at Albany, State University of New York, Albany, NY, 12222
> abrammer at albany.edu
> ##############################
>
> On 25 Nov 2016, at 13:33, Rashed Mahmood <rashidcomsis at gmail.com> wrote:
>
> I figured out how to plot this "double error bar" thing.
> 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.
>
> Some explanation: The tric is to plot each error bar as a separate scatter
> plot with same resources (especially trYMin/Max and trXMin/Max)
> A loop can be used if we have many more data values. I hope the script is
> simple enough for everyone to understand it.
>
> Best,
> Rashed
>
>
>
> ---------- Forwarded message ----------
> From: Rashed Mahmood <rashidcomsis at gmail.com>
> Date: Thu, Nov 24, 2016 at 2:19 PM
> Subject: double error bars on a scatter plot
> To: "ncl-talk at ucar.edu" <ncl-talk at ucar.edu>
>
>
> Hello everyone,
>
> I am trying add two polylines at each marker of a scatter plot, however
> not getting it right.
> 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.
>
> Does anyone has any ideas on this?
>
> Best,
> Rashed
>
> <test_scatter_plot_2.ncl><test_scatter.pdf>_____________
> __________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20161129/7b39e9dd/attachment.html
More information about the ncl-talk
mailing list