<html><head></head><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1513794860401_10178">Thanks a lot dear Mary. <br></div><div id="yui_3_16_0_ym19_1_1513794860401_10202">I was using res@trXMinF and res@trXMaxF but with arbitrary values as in your first suggestion. But after set these parameters using the actual min and max of my data as in your second suggestion it worked perfectly. <br></div><div id="yui_3_16_0_ym19_1_1513794860401_10203">Thank you for your help!<br></div><div id="yui_3_16_0_ym19_1_1513794860401_9822"><span></span></div><div id="yui_3_16_0_ym19_1_1513794860401_9823"> </div><div id="yui_3_16_0_ym19_1_1513794860401_9824" class="signature">-----------------------------<br>GUIGMA</div> <div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div style="font-family: verdana, helvetica, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> On Wednesday, 20 December 2017, 14:09, Mary Haley <haley@ucar.edu> wrote:<br></font></div>  <br><br> <div class="y_msg_container"><div id="yiv5973921512"><div><div dir="ltr"><div class="yiv5973921512gmail_default" style="font-size:small;">Without being able see your data or your script, we can't be sure of what the problem is.</div><div class="yiv5973921512gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv5973921512gmail_default" style="font-size:small;">When NCL creates the plot's axes, it tries to use "nice" values for the X and Y axes minimum and maximum values. This means that you might get some extra space on one or both axes if the actual range of the data is not "nice" numbers. </div><div class="yiv5973921512gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv5973921512gmail_default" style="font-size:small;">For example, if your X axis goes from 1.1 to 9.5, then NCL may choose 1 for the minimum X value and 10 for the maximum X value.  The data will be plotted correctly, regardless.</div><div class="yiv5973921512gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv5973921512gmail_default" style="font-size:small;">If you need to set the limits of your X axis, then use the trXMinF and trXMaxF resources:</div><div class="yiv5973921512gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv5973921512gmail_default" style="font-size:small;">  res@trXMinF = 1.1</div><div class="yiv5973921512gmail_default" style="font-size:small;">  res@trXMaxF = 9.5</div><div class="yiv5973921512gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv5973921512gmail_default" style="font-size:small;">Or, use the data itself to determine the min and max:</div><div class="yiv5973921512gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv5973921512gmail_default"><div class="yiv5973921512gmail_default" style="font-size:small;">  res@trXMinF = min(x)</div><div class="yiv5973921512gmail_default" style="font-size:small;">  res@trXMaxF = max(x)</div><div class="yiv5973921512gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv5973921512gmail_default" style="font-size:small;">Where "x" is the first array being passed to gsn_csm_xy.</div><div class="yiv5973921512gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv5973921512gmail_default" style="font-size:small;">In your case, there's something strange going on with the X axis because there appears to be far too much white space on the X axis. I don't know what the cause of this is, but you need to look at your X array using printVarSummary and printMinMax to see what the range of this array is.</div><div class="yiv5973921512gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv5973921512gmail_default" style="font-size:small;">Since you have time values on the X axis, uou might want to check out the user contributed function "time_axis_labels". This procedure gives you nice labels on a time axis.  For some examples, see:<br clear="none"></div><div class="yiv5973921512gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv5973921512gmail_default"><a rel="nofollow" shape="rect" target="_blank" href="http://www.ncl.ucar.edu/Applications/time_labels.shtml">http://www.ncl.ucar.edu/Applications/time_labels.shtml</a><br clear="none"></div><div class="yiv5973921512gmail_default"><br clear="none"></div><div class="yiv5973921512gmail_default">The first example on this page sets trXMinF and trXMaxF.</div><div class="yiv5973921512gmail_default"><br clear="none"></div><div class="yiv5973921512gmail_default">--Mary</div><div class="yiv5973921512gmail_default"><br clear="none"></div><div class="yiv5973921512gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv5973921512gmail_default" style="font-size:small;"><br clear="none"></div></div></div><div class="yiv5973921512gmail_extra"><br clear="none"><div class="yiv5973921512gmail_quote">On Tue, Dec 19, 2017 at 9:21 AM, Kiswendsida Hyacinthe GUIGMA via ncl-talk <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:ncl-talk@ucar.edu" target="_blank" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>></span> wrote:<br clear="none"><blockquote class="yiv5973921512gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv5973921512yqt5899610467" id="yiv5973921512yqt05609"><div><div style="color:#000;background-color:#fff;font-family:verdana, helvetica, sans-serif;font-size:16px;"><div id="yiv5973921512m_5787623935958341338yiv9712165049"><div id="yiv5973921512m_5787623935958341338yui_3_16_0_ym19_1_1513700435974_3152"><div id="yiv5973921512m_5787623935958341338yui_3_16_0_ym19_1_1513700435974_3151" style="color:#000;background-color:#fff;font-family:verdana, helvetica, sans-serif;font-size:16px;"><div id="yiv5973921512m_5787623935958341338yiv9712165049yui_3_16_0_ym19_1_1513698812508_7562"><span id="yiv5973921512m_5787623935958341338yiv9712165049yui_3_16_0_ym19_1_1513698812508_7622">Dear NCL users,</span></div><div dir="ltr" id="yiv5973921512m_5787623935958341338yiv9712165049yui_3_16_0_ym19_1_1513698812508_7589"><span id="yiv5973921512m_5787623935958341338yiv9712165049yui_3_16_0_ym19_1_1513698812508_7613">I am doing a simple xy-plot but I don't get nice pictures. Actually the problem is that my plot doesn't take all the extent of the axis. It leaves some space at the right and the left corners. Please have a look at the attached png file to understand more. I have tried to solve this problem using many resources but without success. <br clear="none"></span></div><div dir="ltr" id="yiv5973921512m_5787623935958341338yiv9712165049yui_3_16_0_ym19_1_1513698812508_9606"><span id="yiv5973921512m_5787623935958341338yiv9712165049yui_3_16_0_ym19_1_1513698812508_7613">Thank you in advance for your help!</span></div><div dir="ltr" id="yiv5973921512m_5787623935958341338yiv9712165049yui_3_16_0_ym19_1_1513698812508_7773"><br clear="none"><span id="yiv5973921512m_5787623935958341338yiv9712165049yui_3_16_0_ym19_1_1513698812508_7613"></span></div><div dir="ltr" id="yiv5973921512m_5787623935958341338yiv9712165049yui_3_16_0_ym19_1_1513698812508_7774"><br clear="none"><span id="yiv5973921512m_5787623935958341338yiv9712165049yui_3_16_0_ym19_1_1513698812508_7613"></span></div><div id="yiv5973921512m_5787623935958341338yiv9712165049yui_3_16_0_ym19_1_1513698812508_7568"> </div><div class="yiv5973921512m_5787623935958341338yiv9712165049signature" id="yiv5973921512m_5787623935958341338yiv9712165049yui_3_16_0_ym19_1_1513698812508_7563">-----------------------------<br clear="none">GUIGMA</div></div></div></div></div></div></div><br clear="none">______________________________ _________________<br clear="none">
ncl-talk mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:ncl-talk@ucar.edu" target="_blank" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br clear="none">
List instructions, subscriber options, unsubscribe:<br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/ mailman/listinfo/ncl-talk</a><br clear="none">
<br clear="none"></blockquote></div><br clear="none"></div></div></div><br><br></div>  </div> </div>  </div></div></body></html>