<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Hi Alan,</div><div>It sounds like what you want is to change the aspect ratio of the plot. Try setting vpWidthF = 0.4 in the plot resource list. (The default is 0.6 for both vpWidthF and vpHeightF.) That should compress your x-axis by a third.</div><div>Adam<br><br><br></div><div><br>On May 19, 2015, at 4:52 PM, Alan Rhoades <<a href="mailto:alan.m.rhoades@gmail.com">alan.m.rhoades@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">Hi Adam,<div><br></div><div>Thanks for the prompt reply! The description of the @boxWidth command was very helpful.</div><div><br></div><div>I am still curious if there is a possible way to push all of the x-axis labels closer together, maintain the x-axis label font size, and thus eliminate the physical gaps, rather than simply filling in the space with the boxplot lines via @boxWidth? It seems that no matter what value you scale the x-axis to (i.e., 1 to 15 by 1, or 0 to 1 by 1/15) the space on the plot image is still maintained on the x-axis and "awkward" spacing is still seen between the x-axis tickmark labels.</div><div><br></div><div>All the best,</div><div><br></div><div>AR</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 19, 2015 at 3:30 PM, Adam Phillips <span dir="ltr"><<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.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><div>Hi Alan,<br></div>The boxplot function was made to be flexible, and thus should accept most if not all relevant resources thrown its way.<br><br>You are right to focus in on your xdata_BOX_ALL array. (In your script this equals the input X-axis center value for each box.) However, you also likely need to modify your opti_all@boxWidth resource (=width of boxes in x-axis units).<br><br></div><div>For instance, if you set things this way:<br>xdata_BOX_ALL array = (/1,2,3,4/)<br></div><div>opti_all@boxWidth = 0.25 <br>then each box would be 0.25 units wide centered around x-axis values of 1, 2, 3, and 4. <br><br>However, if you set things this way:<br>xdata_BOX_ALL array = (/1,2,3,4/)<br>opti_all@boxWidth = 0.90<br><br></div><div>There would be very little space (=.1) between each box as the first box will go from 0.55 to 1.45 along the x-axis, the second from 1.55 to 2.45, etc..<br><br></div><div>I just tested the above in a toy script I have here and I was able to reduce the space between the boxes.<br></div><div><br></div><div>Hope that's helps. If not, let ncl-talk know..<br></div><div>Adam<br></div><div><br></div><div> <br><br><br> <br><br><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Tue, May 19, 2015 at 3:30 PM, Alan Rhoades <span dir="ltr"><<a href="mailto:alan.m.rhoades@gmail.com" target="_blank">alan.m.rhoades@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><span style="font-size:12.8000001907349px">Hello,<br><br>I'm trying to modify a boxplot diagram (see attached *.pdf image) so that the x-axis doesn't take up as much room (i.e., make the boxes tighter together by eliminating the spacing in between them). I've tried several different things, but none seem to work. I've attached the script to this email (unfortunately the data file is large and can't be attached too). I'm assuming that there is an NCL resource that I haven't yet tapped into that can do the trick. </span><div style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px"><br></span></div><div style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">Here is an example of what I've tried so far to scale the x-axis values (using fspan), but unfortunately didn't work...</span></div><div style="font-size:12.8000001907349px"><div><span style="font-size:12.8000001907349px"> </span></div><div><span style="font-size:12.8000001907349px">xdata_BOX_ALL = fspan(1,xdata_num_BOX_ALL,15) </span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">...changing the above to...</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><div style="font-size:12.8000001907349px">xdata_BOX_ALL = fspan(1,0.25*xdata_num_BOX_ALL,15)</div><div><span style="font-size:12.8000001907349px">xdata_BOX_ALL = fspan(1,0.5*xdata_num_BOX_ALL,15)</span></div><div style="font-size:12.8000001907349px"><br></div></div></div><div style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">...and I tried modifying some of the ncl resource options too, but I think the boxplot plotting function is a unique case and doesn't respond like other plots would. </span></div><div style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px"><br></span></div><div style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">Any ideas on how to do this? I may have missed a few plotting resources, so any insights are helpful.</span></div><div style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px"><br></span></div><div style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">All the best,</span></div><div style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px"><br></span></div><div style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">AR</span></div><span><font color="#888888"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><font color="#006600"><div style="font-weight:bold"><br></div><div><font color="#006600" size="4"><b>Alan Rhoades</b></font></div></font><div><div><b><font color="#000000" size="2">PhD Student, Atmospheric Science Graduate Group</font></b></div><div><b><font color="#000000" size="2">Climate Change Water and Society (CCWAS) NSF IGERT Trainee</font></b></div><div><b><font color="#000000" size="2">University of California, Davis</font></b></div><div><span style="font-family:arial,sans-serif;background-color:rgb(255,255,255)"><u><b><a href="https://www.linkedin.com/pub/alan-rhoades/22/5bb/52a" target="_blank"><font color="#0000ff">LinkedIn</font></a></b></u></span></div><div><span style="font-family:arial,sans-serif;background-color:rgb(255,255,255)"><u><b><font size="2"><a href="mailto:alan.m.rhoades@gmail.com" target="_blank">alan.m.rhoades@gmail.com</a> </font></b></u></span></div><div><span style="font-family:arial,sans-serif;background-color:rgb(255,255,255)"><u><b><font size="2"><a href="mailto:amrhoades@ucdavis.edu" target="_blank">amrhoades@ucdavis.edu</a></font></b></u></span></div></div><div><font color="#003300" size="2"><b><br></b></font></div><div><b><i><font color="#006600" size="2">"It’s all really there. That’s what really gets you. But you gotta stop and think about it to really get the pleasure about the complexity, the inconceivable nature of nature."</font></i></b></div><div><b><i><font color="#006600" size="2">Richard Feynman</font></i></b></div></div></div></div></div>
</font></span></div>
<br></div></div>_______________________________________________<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><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist, </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a> </font></span><span><font color="#888888"><a href="tel:303-497-1726" value="+13034971726" target="_blank">303-497-1726</a> </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></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><div dir="ltr"><font color="#006600"><div style="font-weight:bold"><br></div><div><font color="#006600" size="4"><b>Alan Rhoades</b></font></div></font><div><div><b><font size="2" color="#000000">PhD Student, Atmospheric Science Graduate Group</font></b></div><div><b><font size="2" color="#000000">Climate Change Water and Society (CCWAS) NSF IGERT Trainee</font></b></div><div><b><font size="2" color="#000000">University of California, Davis</font></b></div><div><span style="font-family:arial,sans-serif;background-color:rgb(255,255,255)"><u><b><a href="https://www.linkedin.com/pub/alan-rhoades/22/5bb/52a" target="_blank"><font color="#0000ff">LinkedIn</font></a></b></u></span></div><div><span style="font-family:arial,sans-serif;background-color:rgb(255,255,255)"><u><b><font size="2"><a href="mailto:alan.m.rhoades@gmail.com" target="_blank">alan.m.rhoades@gmail.com</a> </font></b></u></span></div><div><span style="font-family:arial,sans-serif;background-color:rgb(255,255,255)"><u><b><font size="2"><a href="mailto:amrhoades@ucdavis.edu" target="_blank">amrhoades@ucdavis.edu</a></font></b></u></span></div></div><div><font color="#003300" size="2"><b><br></b></font></div><div><b><i><font color="#006600" size="2">"It’s all really there. That’s what really gets you. But you gotta stop and think about it to really get the pleasure about the complexity, the inconceivable nature of nature."</font></i></b></div><div><b><i><font color="#006600" size="2">Richard Feynman</font></i></b></div></div></div></div></div>
</div>
</div></blockquote></body></html>