<div dir="ltr">Dear All,<div>Thanks for your wonderful suggestions. It worked fantastic.</div><div><br></div><div>Best.</div><div>SB</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 20, 2019 at 8:37 PM Dennis Shea via ncl-talk <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>You can also <b>delete </b>the resource between plots<br></div><div>=====</div><div><br></div><div><span class="gmail-m_-1784482686579846622gmail-im"><div> res@gsnCenterString = "AMOnr PI" ; change Center string<br> res@gsnLeftString = "(b)" ; change Left string<br> res@gsnStringFontHeightF = 0.010</div><div><br> res@xyLineColors = (/"green4"/) ; Line colours (white-to invisible the markov line)<br> plot(2) = gsn_csm_xy(wks, p11, spec1@spcx, res)</div><div><br></div></span><div> <span style="color:rgb(153,0,255)"><b>delete(</b>res@gsnCenterString) </span> ; no center string for plot 2 or plot 3<div class="gmail-m_-1784482686579846622gmail-yj6qo gmail-m_-1784482686579846622gmail-ajU"><div id="gmail-m_-1784482686579846622gmail-:309" class="gmail-m_-1784482686579846622gmail-ajR"><img class="gmail-m_-1784482686579846622gmail-ajT" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 20, 2019 at 10:55 AM Karin Meier-Fleischer via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
Hi,<br>
<br>
why not go the easiest way and write the center string just once and
set the others to an empty string.<br>
<br>
<div><font color="#3333ff"><tt>;**********************************</tt></font></div>
<div><font color="#3333ff"><b><tt> res@gsnCenterString =
"AMOnr PI" ; change Center string</tt></b><tt><br>
</tt><tt> res@gsnLeftString = "(b)" ; change
Left string</tt><tt><br>
</tt><tt> res@gsnStringFontHeightF = 0.010</tt></font></div>
<div><font color="#3333ff"><tt><br>
</tt><tt> res@xyLineColors = (/"green4"/) ; Line
colours (white-to invisible the markov line)</tt><tt><br>
</tt><tt> plot(2) = gsn_csm_xy(wks, p11, spec1@spcx, res)</tt><tt><br>
</tt><tt><br>
</tt><b><tt> res@gsnCenterString = ""</tt></b><tt><br>
</tt><tt> res@xyLineColors = (/"red"/) ; Line
colours (white-to invisible the markov line)</tt><tt><br>
</tt><tt> plot2 = gsn_csm_xy(wks, p21, spec2@spcx, res)</tt><tt><br>
</tt><tt><br>
</tt><b><tt> res@gsnCenterString = ""</tt></b><tt><br>
</tt><tt> res@xyLineColors = (/"blue"/) ; Line
colours (white-to invisible the markov line)</tt><tt><br>
</tt><tt> plot3 = gsn_csm_xy(wks, p31, spec3@spcx, res)</tt><tt><br>
</tt><tt> </tt><tt><br>
</tt><tt> overlay(plot(2),plot2)</tt><tt><br>
</tt><tt> overlay(plot(2),plot3)</tt></font></div>
<font color="#3333ff"><tt>;***************************************************</tt></font><br>
<br>
Bye<br>
Karin<br>
<br>
<div class="gmail-m_-1784482686579846622gmail-m_-5013633139002154876moz-cite-prefix">Am 20.06.19 um 18:35 schrieb Adam
Phillips via ncl-talk:<br>
</div>
<blockquote type="cite">
<div dir="ltr">You could put a carriage return in the
gsnCenterString for plot2 and put two carriage returns in your
plot3.
<div><a href="https://www.ncl.ucar.edu/Document/Language/carriage.shtml" target="_blank">https://www.ncl.ucar.edu/Document/Language/carriage.shtml</a><br>
</div>
<div><br>
</div>
<div>This will result in the CenterString for plot3 being on
top, the CenterString for plot2 being in the middle, and the
CenterString for plot(2) being on the bottom. </div>
<div>Hope that helps!</div>
<div>Adam <br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Wed, Jun 19, 2019 at 1:58
PM S Br via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">Dear Dennis,
<div>Is there any alternate solution to avoid this
overwriting. Do I need to set new resources for each
overlay plot? </div>
<div>I have tried defining 'gsnCentreString' like below but
in this case, the resources written for plot(1) is also
overwriting.</div>
<div><br>
</div>
<div style="color:rgb(80,0,80)"> res@xyLineColors
= (/"green4"/) ; Line colours (white-to invisible the
markov line)</div>
<div style="color:rgb(80,0,80)"> plot(2) = gsn_csm_xy(wks,
p11, spec1@spcx, res)<br>
res@xyLineColors = (/"red"/) ; Line colours
(white-to invisible the markov line)<br>
plot2 = gsn_csm_xy(wks, p21, spec2@spcx, res)</div>
<div style="color:rgb(80,0,80)"> </div>
<div style="color:rgb(80,0,80)"> res@gsnCenterString =
"AMOnr PI" ; change Center string<br>
res@gsnLeftString = "(b)" ; change Left
string<br>
res@gsnStringFontHeightF = 0.010<br>
res@xyLineColors = (/"blue"/) ; Line colours
(white-to invisible the markov line)<br>
plot3 = gsn_csm_xy(wks, p31, spec3@spcx, res)<br>
<br>
overlay(plot(2),plot2)<br>
</div>
<div><span style="color:rgb(80,0,80)">
overlay(plot(2),plot3)</span> </div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Wed, Jun 19, 2019 at
3:57 PM Dennis Shea <<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div>re: "is there any 'AUTOMATIC' way to avoid
overwriting the gsnCenterString?"</div>
<div><br>
</div>
<div>Sorry, no.</div>
<div><br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Wed, Jun 19, 2019
at 4:03 AM S Br via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">Hi All,<br>
<div>I am generating a multi lines panel plot with
multiple overlay command. However, the
'gsngsnCenterString' defined is overwriting may be
due to the use of multiple 'overlay' command and
the CenterString becomes thicker.</div>
<div>Is there any way to avoid overwriting the
CenterString?</div>
<div>;**********************************</div>
<div> res@gsnCenterString = "AMOnr PI"
; change Center string<br>
res@gsnLeftString = "(b)" ;
change Left string<br>
res@gsnStringFontHeightF = 0.010</div>
<div><br>
res@xyLineColors = (/"green4"/) ; Line
colours (white-to invisible the markov line)<br>
plot(2) = gsn_csm_xy(wks, p11, spec1@spcx, res)<br>
res@xyLineColors = (/"red"/) ; Line
colours (white-to invisible the markov line)<br>
plot2 = gsn_csm_xy(wks, p21, spec2@spcx, res)<br>
res@xyLineColors = (/"blue"/) ; Line
colours (white-to invisible the markov line)<br>
plot3 = gsn_csm_xy(wks, p31, spec3@spcx, res)<br>
<br>
overlay(plot(2),plot2)<br>
overlay(plot(2),plot3)</div>
<div>;***************************************************<br>
</div>
<div>Thank you.</div>
<div>SB<br>
</div>
<div><br>
</div>
</div>
_______________________________________________<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>
</blockquote>
</div>
_______________________________________________<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>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr" class="gmail-m_-1784482686579846622gmail-m_-5013633139002154876gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div>
<div><span><font color="#888888">Adam Phillips
<br>
</font></span></div>
<span><font color="#888888">Associate
Scientist, </font></span><span><font color="#888888">Climate and Global
Dynamics Laboratory, NCAR<br>
</font></span></div>
</div>
<div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a>
</font></span><span><font color="#888888">303-497-1726
</font></span></div>
<span></span>
<div>
<div><span><font color="#888888"><br>
</font></span>
<div><span></span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="gmail-m_-1784482686579846622gmail-m_-5013633139002154876mimeAttachmentHeader"></fieldset>
<pre class="gmail-m_-1784482686579846622gmail-m_-5013633139002154876moz-quote-pre">_______________________________________________
ncl-talk mailing list
<a class="gmail-m_-1784482686579846622gmail-m_-5013633139002154876moz-txt-link-abbreviated" href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>
List instructions, subscriber options, unsubscribe:
<a class="gmail-m_-1784482686579846622gmail-m_-5013633139002154876moz-txt-link-freetext" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a>
</pre>
</blockquote>
<br>
</div>
_______________________________________________<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>
_______________________________________________<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>