[ncl-talk] gsn_csm_hov and gsnYRefLine
Rick Brownrigg
brownrig at ucar.edu
Wed May 29 21:06:02 MDT 2019
Hi,
This is a cursory response -- I really don't know the answer in any detail.
But...
- The docs on the resource gsnYRefLine state that it pertains to calls to
gsn_csm_xy(), and so perhaps not surprising that errors stem from a call
to gsn_csm_hov():
http://ncl.ucar.edu/Document/Graphics/Resources/gsn.shtml#gsnYRefLine
- I am perplexed by the error message's reference to
"Windstress_timeseries_contour". A reference to this symbol is not found
anywhere in the NCL code base -- is this a function you might have written
or otherwise drawn from a 3rd party library?
- If I understand correctly your intent, your method of drawing multiple
lines with gsn_add_polyline() would seem to be the better approach, as the
docs for gsnYRefLine suggest only a singular line can be drawn.
I hope that helps...
Rick
On Wed, May 29, 2019 at 7:22 AM Giorgio Graffino <g.graffino at tim.it> wrote:
> Dear NCL people,
> I am struggling on using the resource gsnYRefLine in Hovmoeller plots
> generated through gsn_csm_hov.
>
> Basically, I am trying to draw few reference lines (corresponding to major
> volcanic eruptions) in a series of time vs longitude plots, generated by
> using gsn_attach_plots. Every time I set the relevant resource, I obtain
> the following warning:
>
> warning:gsnYRefLine is not a valid resource in
> Windstress_timeseries_contour at this time
>
> I managed to obtain a decent result (see figure attached) by including a
> bunch of gsn_add_polyline commands in the code, but I'd like to know if
> there is a more elegant way to implement that, or either a way to use
> gsnYRefLine in a gsn_csm_hov plot. Any suggestions? Did I miss anything?
>
> Best regards,
> Giorgio
>
> _______________________________________________
> 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/20190529/56ecc0f0/attachment.html>
More information about the ncl-talk
mailing list