<div>Oops, I didn't pay enough attention on that fundamental detail. Thanks Rick for pointing it out!</div><div><br></div><div><div>Yes, gsn_add_polyline() works, but I was wondering if a simple resource as gsnYRefLine could be set for doing that. Instead it's not possible to use that resource on graphic routines other than gsn_csm_xy(), isn't it? <br></div></div><div><br></div><div>I think the reference to  "Windstress_timeseries_contour" is just due to the name of my script (Windtress_timeseries.ncl), nothing important.</div><div><br></div><div>Cheers,</div><div>Giorgio</div><blockquote>
  ----Messaggio originale----
 <br> Da: brownrig@ucar.edu
 <br> Data: 30-mag-2019 5.06
 <br> A: "Giorgio Graffino"<g.graffino@tim.it>
 <br> Cc: "Ncl-talk"<ncl-talk@ucar.edu>
 <br> Ogg: Re: [ncl-talk] gsn_csm_hov and gsnYRefLine
 <br>
 <br>
 <div dir="ltr">
  <div>
   Hi,
  </div>
  <div>
   <br>
  </div>
  <div>
   This is a cursory response -- I really don't know the answer in any detail. But...
  </div>
  <div>
   <br>
  </div>
  <div>
   - 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():
  </div>
  <div>
   <br>
  </div>
  <div>
       
   <a href="http://ncl.ucar.edu/Document/Graphics/Resources/gsn.shtml#gsnYRefLine">http://ncl.ucar.edu/Document/Graphics/Resources/gsn.shtml#gsnYRefLine</a>
  </div>
  <div>
   <br>
  </div>
  <div>
   - 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?
  </div>
  <div>
   <br>
  </div>
  <div>
   - 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.
  </div>
  <div>
   <br>
  </div>
  <div>
   I hope that helps...
  </div>
  <div>
   Rick
  </div>
  <div>
   <br>
  </div>
  <div>
   <br>
  </div>
 </div>
 <br>
 <div class="gmail_quote">
  <div dir="ltr" class="gmail_attr">
   On Wed, May 29, 2019 at 7:22 AM Giorgio Graffino <
   <a href="javascript:handleMailto('mailto:g.graffino@tim.it');return false;">g.graffino@tim.it</a>> wrote:
   <br>
  </div>
  <blockquote class="gmail_quote" style="margin: 0.0px 0.0px 0.0px 0.8ex;border-left: 1.0px solid rgb(204,204,204);padding-left: 1.0ex;">
   <div>
    Dear NCL people,
   </div>
   <div>
    I am struggling on using the resource gsnYRefLine in Hovmoeller plots generated through gsn_csm_hov.
   </div>
   <div>
    <br>
   </div>
   <div>
    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:
   </div>
   <div>
    <br>
   </div>
   <div>
    warning:gsnYRefLine is not a valid resource in Windstress_timeseries_contour at this time
   </div>
   <div>
    <br>
   </div>
   <div>
    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?
   </div>
   <div>
    <br>
   </div>
   <div>
    Best regards,
   </div>
   <div>
    Giorgio
    <br>
   </div>
   <div>
     
    <br>
   </div>_______________________________________________
   <br> ncl-talk mailing list
   <br>
   <a href="javascript:handleMailto('mailto:ncl-talk@ucar.edu');return false;">ncl-talk@ucar.edu</a>
   <br> List instructions, subscriber options, unsubscribe:
   <br>
   <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a>
   <br>
  </blockquote>
 </div>
 <br>
</blockquote>
<br>