<div dir="ltr"><div class="gmail_default" style="font-size:small">The issue is that NCL can&#39;t make any assumption on what the X or Y axis should look like outside the actual X/Y range of your data.  If you give it extra values on either axis, and your data is irregularly spaced in either axis, then NCL can&#39;t &quot;guess&quot; at what the new values should be spaced as.<br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">One way around this is to increase your data array&#39;s dimensions by the desired new values, using the &quot;new&quot; function to increase the two coordinate arrays and the data array as desired.  See example axes_6.ncl at:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style><a href="http://www.ncl.ucar.edu/Applications/axes.shtml">http://www.ncl.ucar.edu/Applications/axes.shtml</a><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The &quot;<a href="http://atmos.nc">atmos.nc</a>&quot; data file for axes_6.ncl can be found at:</div><div class="gmail_default" style="font-size:small"><pre><a href="http://www.ncl.ucar.edu/Applications/Data/#cdf">http://www.ncl.ucar.edu/Applications/Data/#cdf</a></pre></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 29, 2015 at 2:47 PM, xiaoming Hu <span dir="ltr">&lt;<a href="mailto:yuanfangcan@hotmail.com" target="_blank">yuanfangcan@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">I wanted to control the corner of gsn_contour plot<br>using<br>   res1@trYMinF           =  -2<br>   res1@trYMaxF           =  6<br>   res1@trXMaxF           =   1<br>   res1@trXMinF           =   -4<br>But it did not work, see attached figure. <br><br>Seems the resources is disabled.<br><br>Any suggestions? <br>See my plotting code:<br><br>  res1@sfXArray                    = CoolingRate(index_effective)<br>  res1@sfYArray                    = UHII_9PM(index_effective)<br>  res1@cnFillOn                    = True<br>  res1@cnLinesOn                   = False<br>  res1@cnLineLabelsOn              = False<br>  res1@tfDoNDCOverlay       = False  <br>  gsn_define_colormap(wks,&quot;cosam&quot;) ; select<br>  res1@gsnSpreadColors             = True<br>   res1@trYMinF           =  -2<br>   res1@trYMaxF           =  6 <br>   res1@trXMaxF           =   1 <br>   res1@trXMinF           =   -4 <br>  res1@cnInfoLabelOn         = False<br>  res1@pmLabelBarDisplayMode = &quot;Always&quot;<br>  Month_value = Month(::24)<br>  map = gsn_contour(wks, Month_value(index_effective), res1)<br>  draw(map)<br><br>Thanks a lot<span class="HOEnZb"><font color="#888888"><br><br>Xiaoming <br>                                               </font></span></div></div>
<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" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>