<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: <a href="mailto:marston.johnston@gu.se" target="_blank" class="">marston.johnston@gu.se</a> </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 <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 <<a href="mailto:haley@ucar.edu" class="">haley@ucar.edu</a>> 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. </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. 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". 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=""><<a href="mailto:shejo284@gmail.com" target="_blank" class="">shejo284@gmail.com</a>></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. </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? </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=""> plot = new(4,graphic)</div><div class=""> data = new((/3,dimsizes(djfzm&lat)/),double)</div><div class=""><br class=""></div><div class=""> res = True</div><div class=""> resR = True </div><div class=""><br class=""></div><div class=""> res@gsnFrame = False </div><div class=""> res@gsnDraw = False </div><div class=""> res@xyLineThicknesses = (/2.0,2.0,2.0/) </div><div class=""> res@xyLineColors = (/"blue","red","black"/)</div><div class=""><br class=""></div><div class=""> resR@trYMinF = -4</div><div class=""> resR@trYMaxF = 30</div><div class=""> res@trYMinF = 180</div><div class=""> res@trYMaxF = 300</div><div class=""> </div><div class=""> ; add a legend</div><div class=""> res@pmLegendDisplayMode = "Always" ; turn on legend</div><div class=""> res@pmLegendSide = "Top" ; Change location of</div><div class=""> res@pmLegendOrthogonalPosF = -0.65 ; Move into plot</div><div class=""> res@pmLegendParallelPosF = 0.35 ; Move to right</div><div class=""> res@pmLegendWidthF = 0.2 ; Decrease width</div><div class=""> ;res@pmLegendHeightF = 0.1 ; Decrease height</div><div class=""> res@lgBoxMinorExtentF = 0.2 ; Shorten the legend lines</div><div class=""> res@lgLabelFontHeightF = 0.02 ; Change the font size</div><div class=""> res@lgPerimOn = False ; no box around</div><div class=""> res@xyExplicitLegendLabels = (/"EC-Earth","NOAA18"/)</div><div class=""> </div><div class=""> resR@xyLineThicknesses = 2. ; thicker line</div><div class=""> </div><div class=""> ; GRID lines</div><div class=""> res@tmXMajorGrid = True ; implement x grid </div><div class=""> res@tmXMajorGridThicknessF = 1.0 ; 2.0 is default</div><div class=""> res@tmXMajorGridLineDashPattern = 2 ; select short dash lines</div><div class=""> resR@tmYMajorGrid = True ; implement y grid</div><div class=""> resR@tmYMajorGridThicknessF = 1.0 ; 2.0 is default</div><div class=""> resR@tmYMajorGridLineDashPattern = 2 ; select short dash lines</div><div class=""> </div><div class=""> res@tiYAxisString = "Brightness Temperature [K]" ; y-axis title</div><div class=""> ;res@tmXBLabelsOn = False ; do not draw bottom labels</div><div class=""> ;resR@tmYRLabelsOn = False ; no right labels</div><div class=""> ;res@tmYLLabelsOn = True </div><div class=""> data(0,:) = djfzm</div><div class=""> data(1,:) = djfozm</div><div class=""> data(2,:) = djfzm - djfozm</div><div class=""> plot(0) = gsn_csm_xy2 (wks,djfzm&lat,data(0:1,:),data(2,:),res,resR)</div><div class=""><br class=""></div><div class=""> ;**************************</div><div class=""> res@pmLegendDisplayMode = "Never"</div><div class=""> res@tiYAxisString = "" ; y-axis title</div><div class=""> ;res@tmYLLabelsOn = False ; left labels</div><div class=""> </div><div class=""> resR@tiYAxisString = "EC-Earth - NOAA18 [~F33~D K]" ; y2-axis title</div><div class=""> ;resR@tmYRLabelsOn = True ; right labels</div><div class=""><br class=""></div><div class=""> data(0,:) = mamzm</div><div class=""> data(1,:) = mamozm</div><div class=""> data(2,:) = mamzm - mamozm</div><div class=""> plot(1) = gsn_csm_xy2 (wks,mamzm&lat,data(0:1,:),data(2,:),res,resR)</div><div class=""> </div><div class=""> res@tiYAxisString = "Brightness Temperature [K]" ; y-axis title</div><div class=""> resR@tiYAxisString = "" ; y-axis title</div><div class=""> res@tiXAxisString = "Latitude" ; x-axis title</div><div class=""> ;res@tmXBLabelsOn = True ; draw bottom labels</div><div class=""> ;resR@tmYRLabelsOn = False ; right labels</div><div class=""> ;res@tmYLLabelsOn = True ; left labels</div><div class=""> data(0,:) = jjazm</div><div class=""> data(1,:) = jjaozm</div><div class=""> data(2,:) = jjazm - jjaozm</div><div class=""> plot(2) = gsn_csm_xy2 (wks,jjazm&lat,data(0:1,:),data(2,:),res,resR)</div><div class=""> </div><div class=""> res@tiYAxisString = "" ; y-axis title</div><div class=""> resR@tiYAxisString = "EC-Earth - NOAA18 [~F33~D K]" ; y2-axis title</div><div class=""> res@tiXAxisString = "Latitude" ; x-axis title</div><div class=""> ;res@tmYRLabelsOn = True ; right labels</div><div class=""> ;res@tmYLLabelsOn = False ;left labels</div><div class=""> ;resR@tmYRLabelsOn = True </div><div class=""> data(0,:) = sonzm</div><div class=""> data(1,:) = sonozm</div><div class=""> data(2,:) = sonzm - sonozm</div><div class=""> plot(3) = gsn_csm_xy2 (wks,sonzm&lat,data(0:1,:),data(2,:),res,resR)</div><div class=""> </div><div class=""> resP = True</div><div class=""> resP@gsnMaximize = True </div><div class=""> 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: <a href="mailto:marston.johnston@gu.se" target="_blank" class="">marston.johnston@gu.se</a> </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> <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>