<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>You altered the "<a href="http://www.ncl.ucar.edu/Document/Functions/Diagnostics/mjo_wavenum_freq_season_plot.shtml"><b>mjo_wavenum_freq_season_plot</b></a>". Specifically, I assume you replaced:</div><div><br></div><div>  gsn_polyline(wks,plot,(/fline,fline/),(/ 0.,NW/), resp)<br>  gsn_text(wks,plot, (day+"d"),fline+0.005,0.93*NW,tres)</div><div><br></div><div>with something like .....  ???? <br></div><div><pre> dum_line = <strong>gsn_add_polyline</strong>(wks, plot, (/fline,fline/),(/ 0.,NW/), resp)<br> dum_text = <b>gsn_add_text</b>(wks,plot,label,0.75*tmXTValues(nTm-1), \
                                    0.35*tmYLValues(nTm-1) ,tres)</pre></div><div>I am confused because the <b>gsn_add_polyline</b> draws a line with no text embedded; <br></div><div><b>gsn_add_text</b> just adds text yet your vertical lines have the embedded 30d  and 60d text.</div><div><br></div><div>Hard to determine what you did.</div><div><br></div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 19, 2018 at 12:43 AM Sujata Mandke <<a href="mailto:amin@tropmet.res.in">amin@tropmet.res.in</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear NCL community,<br>
Greetings!<br>
<br>
<br>
 I am using NCL function  ”mjo_wavenum_freq_season_plot” to create wave number frequency spectra.  <br>
I had modified this function to make four panel plots in one page in a<br>
single call to the function (plot attached with the mail).<br>
<br>
The two vertical lines corresponding to 30 and 60 day period are <br>
labelled using “gsn_add_text”.  The text 30d and 60d is written twice <br>
on this vertical line overlapping with the spectra, thereby reducing the<br>
 clarity. Thus,  text (30d and 60d) should be written only once at the <br>
top of the line. Please suggest resource if any, for this text to <br>
appear only once on the corresponding vertical line.  <br>
<br>
To solve the above issue, I had also tried alternate method of using <br>
resource  - optPlot@dayLines=(/30,60/) and use this resource in a call <br>
to function (which is modified for four panel plots in single call to function) <br>
as follows<br>
 “ mjo_wavenum_freq_season_plot (wf,wf1,wf2,wf3,nameSeason(ns), pltDir, pltType, pltName, optPlot) <br>
<br>
However, after using this resource, text is not written on the two vertical <br>
lines (corresponding to 30 and 60 day).  This resource may be just for <br>
plotting vertical lines and is not meant for writing text on two vertical lines.<br>
<br>
Before posting the question, i had gone through NCL-talk archives<br>
and also searched resources for “gsn_add_text”, but found none.<br>
<br>
I am using NCL version 6.4.0 on linux machine.<br>
Please help in this regard. <br>
<br>
Any suggestion would be of great help.<br>
 Many thanks in advance.<br>
<br>
With best regards<br>
Dr. Sujata Mandke<br>
Scientist, Indian Institute of Tropical Meteorology<br>
Pune,INDIA._______________________________________________<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" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>