<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" 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="moz-cite-prefix">Am 20.06.19 um 18:35 schrieb Adam
Phillips via ncl-talk:<br>
</div>
<blockquote type="cite"
cite="mid:CACvWuqDNWPHPt_=MTzgM4JoWWqDVMiaKFS1zkTADUS71OEyJ0g@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<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"
moz-do-not-send="true">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"
moz-do-not-send="true">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" moz-do-not-send="true">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"
moz-do-not-send="true">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"
moz-do-not-send="true">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"
moz-do-not-send="true">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"
moz-do-not-send="true">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" moz-do-not-send="true">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr" class="gmail_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" moz-do-not-send="true">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="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
ncl-talk mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>
List instructions, subscriber options, unsubscribe:
<a class="moz-txt-link-freetext" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a>
</pre>
</blockquote>
<br>
</body>
</html>