<div dir="ltr">Hi all,<div><br></div><div>It appears (knock on wood) that I have solved this problem -- the trick was properly formatting the label strings with spaces as the padding characters, then forcing NCL to have constant spacing between the digits such that each tickmark label is the same horizontal length, regardless of the size of the numeric string.</div><div><br></div><div><div>res@tmYLFormat="& 5;*f" </div><div>res@tmYLLabelConstantSpacingF=0.95</div></div><div><br></div><div>Cheers,</div><div><br></div><div>-Colin</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 23, 2015 at 3:24 PM, Colin Zarzycki <span dir="ltr"><<a href="mailto:zarzycki@umich.edu" target="_blank">zarzycki@umich.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi all,</div><div><br></div>I am creating a 4x4 tile of XY plots generated in NCL for use in a LaTeX figure (technically, a table inside a figure).<div><br></div><div>I require the figures to be of identical size. However, the fact that the Y-axis labels have different numbers of maximum digits between the two panels seems to be problematic in getting the figures to match in size.</div><div><br></div><div>I have attached two figures that highlight this problem. If I just leave NCL to generate the tickmarks as default, I get the figure where the XY boxes differ in size (when scaled to fit in the 4x4 table). This appears to occur because, for example, the Y axis in panel (a) has 2 digits while the Y axis in panel (c) has 4 digits.</div><div><br></div><div>If I manually override NCL's defaults such that the Y tickmark labels have matching a precision of 4 (set tiYAxisOffsetXF to False), the problem is (mostly) alleviated. However, this creates the problem of having extraneous decimal points instead of integer values in the labels.</div><div><br></div><div>Is there a way I can essentially "pad" the Y-axis label such that they take up the same size regardless of how many digits NCL actually prints? I have tried tiYAxisOffsetXF to try and force the white space to be controlled by the Y axis title, but apparently the NDC coordinates scale with number of Y-axis tickmark digits as well, so it doesn't solve the problem.</div><div><br></div><div>Cheers,</div><div><br></div><div>-Colin</div><span class="HOEnZb"><font color="#888888"><div><div><br></div>-- <br><div><div dir="ltr"><div dir="ltr" style="font-family:arial;font-size:small">Colin M. Zarzycki, ASP postdoctoral fellow</div><div dir="ltr" style="font-family:arial;font-size:small">Atmospheric Modeling and Predictability<br>National Center for Atmospheric Research<br><a href="http://www.colinzarzycki.com/" style="color:rgb(17,85,204)" target="_blank">http://www.colinzarzycki.com</a></div></div></div>
</div></font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div dir="ltr" style="font-family:arial;font-size:small">Colin M. Zarzycki, ASP postdoctoral fellow</div><div dir="ltr" style="font-family:arial;font-size:small">Atmospheric Modeling and Predictability<br>National Center for Atmospheric Research<br><a href="http://www.colinzarzycki.com/" style="color:rgb(17,85,204)" target="_blank">http://www.colinzarzycki.com</a></div></div></div>
</div>