<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi Vanucia,<div><br></div><div>example xy_32.nxl is what you are looking for. It should work, but without your complete script I can show you only how it can be:</div><div><br></div><div>…</div><div><br></div><div><br></div><div><div><font face="Courier New" color="#0042aa">;-- set resources</font></div><div><font face="Courier New" color="#0042aa"> res = True</font></div><div><font face="Courier New" color="#0042aa"> res@gsnDraw = False</font></div><div><font face="Courier New" color="#0042aa"> res@gsnFrame = False</font></div><div><font face="Courier New" color="#0042aa"> res@gsnMaximize = True</font></div><div><font face="Courier New" color="#0042aa"> </font></div><div><font face="Courier New" color="#0042aa"> res@vpWidthF = 0.8 ; Make plots wider</font></div><div><font face="Courier New" color="#0042aa"> res@vpHeightF = 0.6</font></div><div><font face="Courier New" color="#0042aa"> </font></div><div><font face="Courier New" color="#0042aa"> res@trYMinF = min(zave1)</font></div><div><font face="Courier New" color="#0042aa"> res@trYMaxF = max(zave1)</font></div><div><font face="Courier New" color="#0042aa"><br></font></div><div><font face="Courier New" color="#0042aa"> res@pmLegendDisplayMode = "Always" ; turn on legend</font></div><div><font face="Courier New" color="#0042aa"> res@pmLegendWidthF = 0.12 ; Change width and</font></div><div><font face="Courier New" color="#0042aa"> res@pmLegendHeightF = 0.15 ; height of legend.</font></div><div><font face="Courier New" color="#0042aa"> res@lgLabelFontHeightF = 0.011 ; change font height</font></div><div><font face="Courier New" color="#0042aa"> res@lgPerimOn = False ; no box around</font></div><div><font face="Courier New" color="#0042aa"> </font></div><div><font face="Courier New" color="#0042aa"> res@tmXTOn = False ; bottom off</font></div><div><font face="Courier New" color="#0042aa"> res@tmYROn = False ; right off</font></div><div><font face="Courier New" color="#0042aa"> </font></div><div><font face="Courier New" color="#0042aa"> res@xyMonoDashPattern = True ; force all solid lines</font></div><div><font face="Courier New" color="#0042aa"><br></font></div><div><font face="Courier New" color="#0042aa">;-- assign plot array</font></div><div><font face="Courier New" color="#0042aa"> plot = new(7,graphic)</font></div><div><font face="Courier New" color="#0042aa"><br></font></div><div><font face="Courier New" color="#0042aa">;-- define colors, labels, line thickness and legend position</font></div><div><font face="Courier New" color="#0042aa"> colors = (/"blue","red","brown","purple","green","orange","black"/)</font></div><div><font face="Courier New" color="#0042aa"> labels = (/" BCC-CSM1.1"," CanCM4"," CCSM4"," CFSv2-2011"," CMCC-CM"," FGOALS-G2.0"," CFSR"/)</font></div><div><font face="Courier New" color="#0042aa"> lt = (/5.0,5.0,5.0,5.,5.,5.,9./) </font></div><div><font face="Courier New" color="#0042aa"> lposx = (/.15, .37, .61, .81, .14, .39, .60/)</font></div><div><font face="Courier New" color="#0042aa"> lposy = (/.10, .10, .10, .10, .15, .15, .15/)</font></div><div><font face="Courier New" color="#0042aa"><br></font></div><div><font face="Courier New" color="#0042aa">;-- create the plots</font></div><div><font face="Courier New" color="#0042aa"> do i=0,6</font></div><div><font face="Courier New" color="#0042aa"> res@xyLineColors = colors(i)</font></div><div><font face="Courier New" color="#0042aa"> res@xyExplicitLegendLabels = labels(i)</font></div><div><font face="Courier New" color="#0042aa"> res@xyLineThicknessF = lt(i)</font></div><div><font face="Courier New" color="#0042aa"> res@pmLegendParallelPosF = lposx(i)</font></div><div><font face="Courier New" color="#0042aa"> res@pmLegendOrthogonalPosF = lposy(i)</font></div><div><font face="Courier New" color="#0042aa"> plot(i) = gsn_csm_xy(wks,x,zave1(i,:),res)</font></div><div><font face="Courier New" color="#0042aa"> end do</font></div><div><font face="Courier New" color="#0042aa"><br></font></div><div><font face="Courier New" color="#0042aa">;-- overlay the plots</font></div><div><font face="Courier New" color="#0042aa"> overlay(plot(0),plot(1))</font></div><div><font face="Courier New" color="#0042aa"> overlay(plot(0),plot(2))</font></div><div><font face="Courier New" color="#0042aa"> overlay(plot(0),plot(3))</font></div><div><font face="Courier New" color="#0042aa"> overlay(plot(0),plot(4))</font></div><div><font face="Courier New" color="#0042aa"> overlay(plot(0),plot(5))</font></div><div><font face="Courier New" color="#0042aa"> overlay(plot(0),plot(6))</font></div><div><font face="Courier New" color="#0042aa"><br></font></div><div><font face="Courier New" color="#0042aa">;-- draw the plots</font></div><div><font face="Courier New" color="#0042aa"> draw(plot(0))</font></div><div><font face="Courier New" color="#0042aa"> frame(wks)</font></div></div><div><br></div><div><br></div><div><br></div><div>Bye, </div><div>Karin</div><div><br><div><div>Am 30.03.2015 um 19:33 schrieb Vanúcia Schumacher <<a href="mailto:vanucia-schumacher@hotmail.com">vanucia-schumacher@hotmail.com</a>>:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div class="hmmessage" style="font-size: 12pt; font-family: Calibri; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div dir="ltr"><font face="Calibri,sans-serif"><span style="font-size: 16pt;">Sorry, </span><span style="font-size: 21px;">I forgot to include the script, below:</span></font><div><font face="Calibri,sans-serif"><span style="font-size: 21px;"><br></span></font></div><div><font face="Calibri,sans-serif"><div><span style="font-size: 21px;"> zave1 = new ((/7,dimsizes(zave&lat)/), float)</span></div><div><span style="font-size: 21px;"> zave1(0,:) = zave(0,0,:)</span></div><div><span style="font-size: 21px;"> zave1(1,:) = zave(1,0,:)</span></div><div><span style="font-size: 21px;"> zave1(2,:) = zave(2,0,:)</span></div><div><span style="font-size: 21px;"> zave1(3,:) = zave(3,0,:)</span></div><div><span style="font-size: 21px;"> zave1(4,:) = zave(4,0,:)</span></div><div><span style="font-size: 21px;"> zave1(5,:) = zave(5,0,:)</span></div><div><span style="font-size: 21px;"> zave1(6,:) = zave(6,0,:)</span></div><div><span style="font-size: 21px;"> </span></div><div><span style="font-size: 21px;">printVarSummary( zave1) </span></div><div><span style="font-size: 21px;">;************************************************</span></div><div><span style="font-size: 21px;">; plot</span></div><div><span style="font-size: 21px;">;************************************************</span></div><div><span style="font-size: 21px;"> wks = gsn_open_wks("png","ts.zonal.labels1") </span></div><div><span style="font-size: 21px;"> </span></div><div><span style="font-size: 21px;">;---Plotting options for time series plot</span></div><div><span style="font-size: 21px;"> res = True</span></div><div><span style="font-size: 21px;"><br></span></div><div><span style="font-size: 21px;"> res@gsnMaximize = True</span></div><div><span style="font-size: 21px;"> res@vpWidthF = 0.8 ; Make plots wider</span></div><div><span style="font-size: 21px;"> res@vpHeightF = 0.6</span></div><div><span style="font-size: 21px;"> res@trYMinF = min(zave)</span></div><div><span style="font-size: 21px;"> res@trYMaxF = max(zave)</span></div><div><br></div><div><span style="font-size: 21px;">;---Resources for legend</span></div><div><span style="font-size: 21px;"><br></span></div><div><span style="font-size: 21px;"> res@pmLegendDisplayMode = "Always" ; turn on legend</span></div><div><span style="font-size: 21px;"> res@pmLegendWidthF = 0.12 ; Change width and</span></div><div><span style="font-size: 21px;"> res@pmLegendHeightF = 0.15 ; height of legend.</span></div><div><span style="font-size: 21px;"> res@pmLegendOrthogonalPosF = -0.10 ; move up slightly </span></div><div><span style="font-size: 21px;"> res@lgLabelFontHeightF = .011 ; change font height</span></div><div><span style="font-size: 21px;"> res@lgPerimOn = False ; no box around</span></div><div><span style="font-size: 21px;"> </span></div><div><span style="font-size: 21px;">;---Turn off some tickmarks</span></div><div><span style="font-size: 21px;"> res@tmXTOn = False ; bottom off</span></div><div><span style="font-size: 21px;"> res@tmYROn = False ; right off</span></div><div><span style="font-size: 21px;"><br></span></div><div><span style="font-size: 21px;"> </span></div><div><span style="font-size: 21px;">;---Create the four XY plots</span></div><div><span style="font-size: 21px;"><br></span></div><div><span style="font-size: 21px;"> res@xyExplicitLegendLabels = (/"BCC-CSM1.1","CanCM4","CCSM4","CFSv2-2011","CMCC-CM","FGOALS-G2.0","CFSR"/)</span></div><div><span style="font-size: 21px;"> res@pmLegendParallelPosF = 0.15</span></div><div><span style="font-size: 21px;"> res@xyMonoDashPattern = True ; force all solid lines</span></div><div><span style="font-size: 21px;"> res@xyLineColors = (/"blue","red","brown","purple","green","orange","black"/)</span></div><div><span style="font-size: 21px;"> res@xyLineThicknesses = (/5.0,5.0,5.0,5.,5.,5.,9./) </span></div><div><span style="font-size: 21px;"> </span></div><div><span style="font-size: 21px;"> plot1 = gsn_csm_xy(wks,zave&lat,zave1,res)</span></div><div style="font-size: 21px;"><br></div></font><br><br><div><hr id="stopSpelling">Subject: Re: [ncl-talk] problems with legends side-by-side.<br>From:<span class="Apple-converted-space"> </span><a href="mailto:meier-fleischer@dkrz.de">meier-fleischer@dkrz.de</a><br>Date: Mon, 30 Mar 2015 17:25:33 +0200<br>CC:<span class="Apple-converted-space"> </span><a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>To:<span class="Apple-converted-space"> </span><a href="mailto:vanucia-schumacher@hotmail.com">vanucia-schumacher@hotmail.com</a><br><br>Hi Vanucia,<div><br></div><div>without any further information it is not possible to help. As you mentioned the example xy_32.ncl does what you want.</div><div>Send your script and the error message.</div><div><br></div><div>Bye,</div><div>Karin</div><div><br><div><div>Am 30.03.2015 um 17:19 schrieb Vanúcia Schumacher <<a href="mailto:vanucia-schumacher@hotmail.com">vanucia-schumacher@hotmail.com</a>>:</div><br class="ecxApple-interchange-newline"><blockquote><div class="ecxhmmessage" style="font-size: 12pt; font-family: Calibri; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div dir="ltr"><div style="font-size: 21.3333339691162px;">Hi users,</div><div style="font-size: 21.3333339691162px;"><br></div><div><span style="font-size: 21.3333339691162px;">I would like to put subtitles side -by-side </span><font size="3"><span style="font-family: verdana, sans-serif; line-height: 16px; background-color: rgb(255, 231, 198);">,</span></font><span style="font-size: 21.3333339691162px;"> 3 on top</span></div><span style="font-size: 21.3333339691162px;"><div>and 4 below (attached )</div><div><br></div><div>Anyone know how can I do? already tried the example xy_32.ncl but failed.</div></span></div><span><ts.zonal.labels1.png></span>_______________________________________________<br>ncl-talk mailing list<br>List instructions, subscriber options, unsubscribe:<br><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></div></blockquote></div><br><div><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;"><div style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; word-wrap: break-word;"><div style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; word-wrap: break-word;"><div style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; word-wrap: break-word;"><div style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; word-wrap: break-word;"><span class="ecxApple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px;"><div style="word-wrap: break-word;"><span class="ecxApple-style-span" style="border-collapse: separate; font-family: Helvetica; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px;"><div style="word-wrap: break-word;"><span class="ecxApple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px;"><div style="word-wrap: break-word;"><br></div></span></div></span></div></span></div></div></div></div></div></div></div></div></div></div>_______________________________________________<br>ncl-talk mailing list<br>List instructions, subscriber options, unsubscribe:<br><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></div></blockquote></div><div apple-content-edited="true"><br class="Apple-interchange-newline">
</div>
<br></div></body></html>