<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Alex,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">There's a short answer and a long answer.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The short answer is to try setting "res@pmTitleZone" resource to either 1, 2, 3, or maybe 4. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The long answer is that NCL's PlotManager uses "zones" to try to determine where to place titles with respect to the plot. I think zones 0 and 1 are contained within the plot X/Y axis boundary, zone 2 is just outside the plot, for example, where the tickmarks are, zone 3 is the area containing the tick mark labels, and so on. The x2y2 routine is assuming that the top tickmarks and labels are all on, so it sets pmTitleZone to either 4 or 5, which causes the title to be moved up. By setting it to a lower value, this causes the title to move down.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you want to read some exciting stuff on zones, see:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style=""><a href="http://www.ncl.ucar.edu/Document/HLUs/Classes/PlotManager.shtml#PlotManager-Location-Control-Model">http://www.ncl.ucar.edu/Document/HLUs/Classes/PlotManager.shtml#PlotManager-Location-Control-Model</a><br></div><div class="gmail_default" style=""><br></div><div class="gmail_default" style="font-size:small">I've created a ticket for this, NCL-2470.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 29, 2016 at 10:23 AM, Alexander Schaefer <span dir="ltr"><<a href="mailto:aschae11@uncc.edu" target="_blank">aschae11@uncc.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I was wondering if anyone knows why there is a positioning issue with the strings adjacent to the top of the plot when using the gsn_csm_x2y2 plotting routine as opposed to the gsn_csm_contour plotting routine. I haven’t noticed this in any of the other plotting routines I have used to date. When I turn off the top axis tick marks, the gsn*Strings don’t get translated down to the top of the plot like they standardly do. The first page of the attached pdf illustrates the xy plot with the string positioning issue I am referring to and the second page shows what I am comparing it to, in my case, with the gsn*Strings in the correct position.<br>
<br>
I have created a script to reduce my scripts to basically just resources (maybe they are interacting in an odd way) and plotting of fake data to illustrate my question so hopefully it is less confusing than digging through originals. These plots are made in 2 separate scripts when I use them but combine to reduce file count here.<br>
<br>
If anyone has some insight on the issue or how to fix it (maybe I missed something) I would greatly appreciate the help.<br>
<br>
Thanks,<br>
-Alex<br>
<br>
<br><br>
<br>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">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>
<br></blockquote></div><br></div>