<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Mary,<div class=""><br class=""></div><div class="">The example solution in #19 solved the problem.</div><div class="">The plots needed to brought closer so that the right titles</div><div class="">could be seen. The results look great now.</div><div class="">Thanks a lot!</div><div class=""><br class=""></div><div class="">Do you still need me to send you the data?</div><div class=""><br class=""></div><div class="">/M<br class=""><div class="">
<div class=""><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px;" class=""><font color="#0000ff" class="">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</font></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px;" class=""><font color="#0000ff" class="">Marston S. Johnston, PhD</font></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px;" class=""><font color="#0000ff" class="">Department of Earth Sciences</font></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px;" class=""><font color="#0000ff" class="">University of Gothenburg</font><span style="color: rgb(0, 0, 255);" class="">, Sweden</span></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px;" class=""><font color="#0000ff" class="">Email:&nbsp;<a href="mailto:marston.johnston@gu.se" target="_blank" class="">marston.johnston@gu.se</a>&nbsp;</font></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px;" class=""><font color="#0000ff" class="">Phone: +46-31-7862859&nbsp;<br class=""></font></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px;" class=""><font color="#0000ff" class="">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</font></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px;" class=""><font color="#0000ff" class="">Only the fruitful thing is true!</font></div></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On 26 May 2015, at 05:32, Mary Haley &lt;<a href="mailto:haley@ucar.edu" class="">haley@ucar.edu</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_default" style="font-size:small">Hi Marston,</div><div class="gmail_default" style="font-size:small"><br class=""></div><div class="gmail_default" style="font-size:small">There are a couple of things you can do to get the plots to be closer together.</div><div class="gmail_default" style="font-size:small"><br class=""></div><div class="gmail_default" style="font-size:small"><font face="arial, helvetica, sans-serif" class="">One thing is to try setting the panel resource "<a href="http://www.ncl.ucar.edu/Document/Graphics/Resources/gsn.shtml#gsnPanelYWhiteSpacePercent" class="">gsnPanelYWhiteSpacePercent</a>" to something smaller than 1.0 and greater than 0.0.</font></div><div class="gmail_default" style="font-size:small"><font face="arial, helvetica, sans-serif" class=""><br class=""></font></div><div class="gmail_default" style="font-size:small"><font face="arial, helvetica, sans-serif" class="">Another thing you can do is set the special gsnPanelXF resource, which allows you to set the x position of each plot in a panel, in order to override the default.&nbsp;</font><span style="font-family:arial,helvetica,sans-serif" class="">Setting resP@gsnPanelDebug to True will print the default values being used for the x position, allowing you to adjust as necessary.</span></div><div class=""><br class=""></div><div class="gmail_default" style="font-size:small"><font face="arial, helvetica, sans-serif" class="">See example panel_19.ncl for more information:</font></div><div class="gmail_default" style="font-size:small"><font face="arial, helvetica, sans-serif" class=""><br class=""></font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif" style="" class=""><a href="http://www.ncl.ucar.edu/Applications/panel.shtml#ex19" class="">http://www.ncl.ucar.edu/Applications/panel.shtml#ex19</a><br class=""></font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif" style="" class=""><br class=""></font></div><div class="gmail_default" style="font-size:small"><font face="arial, helvetica, sans-serif" class=""><br class=""></font></div><div class="gmail_default" style="font-size:small"><font face="arial, helvetica, sans-serif" class="">Setting res@tmYLLabelsOn to False *should* turn off the Y axis labels.&nbsp; I do see that you are calling gsn_csm_xy2, so perhaps this is doing something unexpected. It would really help if you could provide us with the data so we can run your script, or else provide us with a small test case that illustrates the problem.</font></div><div class="gmail_default" style="font-size:small"><font face="arial, helvetica, sans-serif" class=""><br class=""></font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif" style="font-size:small" class="">To change the side of the Y axis title, try setting tiYAxisSide to "Right".&nbsp; See example title_8.ncl:</font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif" class=""><br class=""></font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif" class=""><a href="http://www.ncl.ucar.edu/Applications/title.shtml#ex8" class="">http://www.ncl.ucar.edu/Applications/title.shtml#ex8</a></font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif" class=""><br class=""></font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif" class="">I should point out that the gsn_csm_xy2 routine may be trying to control some of these features in order to make sure all the labels and tickmarks are correct. If you continue to have problems with this routine, then let me know.</font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif" class=""><br class=""></font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif" class="">--Mary</font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif" class=""><br class=""></font></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Mon, May 25, 2015 at 12:15 AM, Marston Johnston <span dir="ltr" class="">&lt;<a href="mailto:shejo284@gmail.com" target="_blank" class="">shejo284@gmail.com</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class="">Hi,</div><div class=""><br class=""></div><div class="">I’m trying to complete this figure by making some cosmetic changes.</div><div class="">I thought these would be rather easy but I’m missing something. What I would like to do are:</div><div class=""><br class=""></div><div class="">1.) Move the plots closer vertically and remove the y-axis labels.&nbsp;</div><div class="">2.) I added a y2-axis title on the right side of the right column plots. How do I get these to show up?&nbsp;</div><div class="">I’ve tried using the tmYLLabelsOn but this doesn’t give me the changes I need. I suspect something is interfering.</div><div class=""><br class=""></div><div class="">Would appreciate some advice on this.</div><div class=""><br class=""></div><div class="">Thanks in advance!</div><div class="">/M</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">plot snip…..</div><div class=""><br class=""></div><div class=""><div class="">wks = gsn_open_wks("pdf","zmean_xy")</div><div class="">&nbsp; plot = new(4,graphic)</div><div class="">&nbsp; data = new((/3,dimsizes(djfzm&amp;lat)/),double)</div><div class=""><br class=""></div><div class="">&nbsp; res = True</div><div class="">&nbsp; resR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= True&nbsp;</div><div class=""><br class=""></div><div class="">&nbsp; res@gsnFrame &nbsp; &nbsp; &nbsp; &nbsp;= False &nbsp;&nbsp;</div><div class="">&nbsp; res@gsnDraw &nbsp; &nbsp; &nbsp; &nbsp; = False &nbsp;&nbsp;</div><div class="">&nbsp; res@xyLineThicknesses = (/2.0,2.0,2.0/) &nbsp; &nbsp; &nbsp;</div><div class="">&nbsp; res@xyLineColors &nbsp; &nbsp; &nbsp;= (/"blue","red","black"/)</div><div class=""><br class=""></div><div class="">&nbsp; resR@trYMinF = -4</div><div class="">&nbsp; resR@trYMaxF = 30</div><div class="">&nbsp; res@trYMinF = 180</div><div class="">&nbsp; res@trYMaxF = 300</div><div class="">&nbsp;&nbsp;</div><div class="">&nbsp; ; add a legend</div><div class="">&nbsp; res@pmLegendDisplayMode &nbsp; &nbsp;= "Always" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; turn on legend</div><div class="">&nbsp; res@pmLegendSide &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = "Top" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; Change location of</div><div class="">&nbsp; res@pmLegendOrthogonalPosF = -0.65 &nbsp; &nbsp; ; Move into plot</div><div class="">&nbsp; res@pmLegendParallelPosF &nbsp; = 0.35 &nbsp; &nbsp; &nbsp; ; Move to right</div><div class="">&nbsp; res@pmLegendWidthF &nbsp; &nbsp; &nbsp; &nbsp; = 0.2 &nbsp; &nbsp; &nbsp; ; Decrease width</div><div class="">&nbsp; ;res@pmLegendHeightF &nbsp; &nbsp; &nbsp; &nbsp;= 0.1 &nbsp; &nbsp; &nbsp; ; Decrease height</div><div class="">&nbsp; res@lgBoxMinorExtentF &nbsp; &nbsp; &nbsp;= 0.2 &nbsp; &nbsp; &nbsp; ; Shorten the legend lines</div><div class="">&nbsp; res@lgLabelFontHeightF &nbsp; &nbsp; = 0.02 &nbsp; &nbsp; ; Change the font size</div><div class="">&nbsp; res@lgPerimOn &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= False &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; no box around</div><div class="">&nbsp; res@xyExplicitLegendLabels = (/"EC-Earth","NOAA18"/)</div><div class="">&nbsp;&nbsp;</div><div class="">&nbsp; resR@xyLineThicknesses &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; thicker line</div><div class="">&nbsp;&nbsp;</div><div class="">&nbsp; ; GRID lines</div><div class="">&nbsp; res@tmXMajorGrid &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= True &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; implement x grid&nbsp;</div><div class="">&nbsp; res@tmXMajorGridThicknessF &nbsp; &nbsp; &nbsp;= 1.0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; 2.0 is default</div><div class="">&nbsp; res@tmXMajorGridLineDashPattern = 2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; select short dash lines</div><div class="">&nbsp; resR@tmYMajorGrid &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= True &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; implement y grid</div><div class="">&nbsp; resR@tmYMajorGridThicknessF &nbsp; &nbsp; &nbsp;= 1.0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; 2.0 is default</div><div class="">&nbsp; resR@tmYMajorGridLineDashPattern = 2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; select short dash lines</div><div class="">&nbsp;&nbsp;</div><div class="">&nbsp; res@tiYAxisString &nbsp;= "Brightness Temperature [K]" ; y-axis title</div><div class="">&nbsp; ;res@tmXBLabelsOn &nbsp; &nbsp; &nbsp; &nbsp; = False &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; do not draw bottom labels</div><div class="">&nbsp; ;resR@tmYRLabelsOn &nbsp; &nbsp; &nbsp; &nbsp;= False &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; no right labels</div><div class="">&nbsp; ;res@tmYLLabelsOn &nbsp; &nbsp; &nbsp; &nbsp; = True &nbsp;&nbsp;</div><div class="">&nbsp; data(0,:) = djfzm</div><div class="">&nbsp; data(1,:) = djfozm</div><div class="">&nbsp; data(2,:) = djfzm - djfozm</div><div class="">&nbsp; plot(0) = gsn_csm_xy2 (wks,djfzm&amp;lat,data(0:1,:),data(2,:),res,resR)</div><div class=""><br class=""></div><div class="">&nbsp; ;**************************</div><div class="">&nbsp; res@pmLegendDisplayMode = "Never"</div><div class="">&nbsp; res@tiYAxisString = "" ; y-axis title</div><div class="">&nbsp; ;res@tmYLLabelsOn &nbsp;= False &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; left labels</div><div class="">&nbsp;&nbsp;</div><div class="">&nbsp; resR@tiYAxisString = "EC-Earth - NOAA18 [~F33~D K]" ; y2-axis title</div><div class="">&nbsp; ;resR@tmYRLabelsOn &nbsp;= True &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; right labels</div><div class=""><br class=""></div><div class="">&nbsp; data(0,:) = mamzm</div><div class="">&nbsp; data(1,:) = mamozm</div><div class="">&nbsp; data(2,:) = mamzm - mamozm</div><div class="">&nbsp; plot(1) = gsn_csm_xy2 (wks,mamzm&amp;lat,data(0:1,:),data(2,:),res,resR)</div><div class="">&nbsp;</div><div class="">&nbsp; res@tiYAxisString &nbsp;= "Brightness Temperature [K]" ; y-axis title</div><div class="">&nbsp; resR@tiYAxisString &nbsp;= "" ; y-axis title</div><div class="">&nbsp; res@tiXAxisString &nbsp;= "Latitude" ; x-axis title</div><div class="">&nbsp; ;res@tmXBLabelsOn &nbsp; &nbsp; &nbsp; &nbsp; = True &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; draw bottom labels</div><div class="">&nbsp; ;resR@tmYRLabelsOn &nbsp; &nbsp; &nbsp; &nbsp;= False &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; right labels</div><div class="">&nbsp; ;res@tmYLLabelsOn &nbsp; &nbsp; &nbsp; &nbsp; = True &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; left labels</div><div class="">&nbsp; data(0,:) = jjazm</div><div class="">&nbsp; data(1,:) = jjaozm</div><div class="">&nbsp; data(2,:) = jjazm - jjaozm</div><div class="">&nbsp; plot(2) = gsn_csm_xy2 (wks,jjazm&amp;lat,data(0:1,:),data(2,:),res,resR)</div><div class="">&nbsp;&nbsp;</div><div class="">&nbsp; res@tiYAxisString &nbsp;= "" ; y-axis title</div><div class="">&nbsp; resR@tiYAxisString &nbsp;= "EC-Earth - NOAA18 [~F33~D K]" ; y2-axis title</div><div class="">&nbsp; res@tiXAxisString &nbsp;= "Latitude" ; x-axis title</div><div class="">&nbsp; ;res@tmYRLabelsOn &nbsp; &nbsp; &nbsp; &nbsp; = True &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; right labels</div><div class="">&nbsp; ;res@tmYLLabelsOn &nbsp; &nbsp; &nbsp; &nbsp; = False &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;left labels</div><div class="">&nbsp; ;resR@tmYRLabelsOn &nbsp; &nbsp; &nbsp; &nbsp;= True&nbsp;</div><div class="">&nbsp; data(0,:) = sonzm</div><div class="">&nbsp; data(1,:) = sonozm</div><div class="">&nbsp; data(2,:) = sonzm - sonozm</div><div class="">&nbsp; plot(3) = gsn_csm_xy2 (wks,sonzm&amp;lat,data(0:1,:),data(2,:),res,resR)</div><div class="">&nbsp;&nbsp;</div><div class="">&nbsp; resP &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = True</div><div class="">&nbsp; resP@gsnMaximize &nbsp;= True&nbsp;</div><div class="">&nbsp; gsn_panel(wks,plot,(/2,2/),resP)</div></div><div class=""><br class=""></div><div class="">***************</div></div><br class=""><div style="word-wrap:break-word" class=""><br class=""><div class="">
<div class=""><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px" class=""><font color="#0000ff" class="">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</font></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px" class=""><font color="#0000ff" class="">Marston S. Johnston, PhD</font></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px" class=""><font color="#0000ff" class="">Department of Earth Sciences</font></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px" class=""><font color="#0000ff" class="">University of Gothenburg</font><span style="color:rgb(0,0,255)" class="">, Sweden</span></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px" class=""><font color="#0000ff" class="">Email:&nbsp;<a href="mailto:marston.johnston@gu.se" target="_blank" class="">marston.johnston@gu.se</a>&nbsp;</font></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px" class=""><font color="#0000ff" class="">Phone: <a href="tel:%2B46-31-7862859" value="+46317862859" target="_blank" class="">+46-31-7862859</a>&nbsp;<br class=""></font></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px" class=""><font color="#0000ff" class="">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</font></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px" class=""><font color="#0000ff" class="">Only the fruitful thing is true!</font></div></div>
</div>

<br class=""></div><br class="">_______________________________________________<br class="">
ncl-talk mailing list<br class="">
List instructions, subscriber options, unsubscribe:<br class="">
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br class="">
<br class=""></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></body></html>