<div dir="ltr"><div class="gmail_default" style="font-size:small">Toshi,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">NCL always draws to a square canvas, so even if you specify a non-square ratio with wkWidth and wkHeight, you will get a 1026x576 image, but the plots will be drawn to a 576x576 part of that image.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">My suggestion is to set both wkWidth and wkHeight to the same value that is the larger of the two sizes (1026x1026). NCL will then expand the image without skewing the aspect ratio.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You will still end up with white space, however, around the top and bottom. You can then use the free "convert" tool to further post-process the image. So, after the gsn_panel call, delete "wks" (which closes the image) and then use "system" to call the convert command:</div><div class="gmail_default" style=""><div class="gmail_default" style=""><br></div><div class="gmail_default" style=""> delete(wks)</div><div class="gmail_default" style=""> system("convert -trim -geometry 1026x576 panel.png panel_trim.png") </div></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">We do have a trouble ticket for implementing more flexibility with PNG output, but in the meantime, hopefully this will serve as a work-around.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I've attached a sample script in case anybody else is having trouble with this issue. You can download the data file it uses from</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><a href="http://www.ncl.ucar.edu/Applications/Data/cdf/sst8292a.nc">http://www.ncl.ucar.edu/Applications/Data/cdf/sst8292a.nc</a></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 11, 2016 at 12:58 PM, Matsui, Toshihisa (GSFC-612.0)[UNIV OF MARYLAND] <span dir="ltr"><<a href="mailto:toshihisa.matsui-1@nasa.gov" target="_blank">toshihisa.matsui-1@nasa.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
Hello NCL users
<div><br>
</div>
<div>I am in the middle of transition from GrADS to NCL…</div>
<div>But in tough time for plotting very easy plots. </div>
<div><br>
</div>
<div>Point is that when I specified the width and height in WKS,e.g., </div>
<div><br>
</div>
<div>
<div style="margin:0px;font-size:16px;font-family:Monaco"> type@wkWidth = 1026 </div>
<div style="margin:0px;font-size:16px;font-family:Monaco"> type@wkHeight = 576 </div>
<div><br>
</div>
<div>My panel plots does not use all space in workstation (this try to show two square plots in one workstation), even if I use gsnMaximize.</div>
<div><br>
</div>
<div>
<div style="margin:0px;font-size:16px;font-family:Monaco"> pnlres@gsnMaximize = True </div>
</div>
<div>
<div style="margin:0px;font-size:16px;font-family:Monaco"> gsn_panel(wks,(/plots/),(/1,2/),pnlres)</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>It suppose to use entire space of 1026x576, but plots appeared in the middle of workstation, only. </div>
<div>I’ve tested alot of options in website, but still does not work well, like this…</div>
<div><a href="https://dl.dropboxusercontent.com/u/80419501/data/Screenshot%202016-04-11%2014.56.55.png" target="_blank">https://dl.dropboxusercontent.com/u/80419501/data/Screenshot%202016-04-11%2014.56.55.png</a></div>
<div><br>
</div>
<div>Toshi</div>
<div><br>
</div>
<div>
<div>
<div>--------------------------------------------------</div>
<div>
<div style="margin:0px">Toshihisa Matsui,Ph.D - ESSIC/UMCP </div>
<div style="margin:0px">Associate Research Scientist</div>
<div style="margin:0px">Code612 NASA Goddard Space Flight Center</div>
<div style="margin:0px">Greenbelt, MD, 20771</div>
<div style="margin:0px">Voice:<a href="tel:%28301%29-614-5658" value="+13016145658" target="_blank">(301)-614-5658</a></div>
<div style="margin:0px">E-mail: <a href="mailto:toshihisa.matsui-1@nasa.gov" target="_blank">toshihisa.matsui-1@nasa.gov</a></div>
<div style="margin:0px"><br>
</div>
<div><a href="http://cloud.gsfc.nasa.gov/index.php?section=24" target="_blank">Personel Web</a></div>
<div><a href="http://cloud.gsfc.nasa.gov/index.php?section=7" target="_blank">Group Web</a></div>
<div style="margin:0px"><a href="http://cloud.gsfc.nasa.gov/index.php?section=14" target="_blank">GSDSU</a></div>
<div style="margin:0px"><a href="http://nuwrf.gsfc.nasa.gov/" target="_blank">NU-WRF</a></div>
<div style="margin:0px">--------------------------------------------------</div>
</div>
</div>
</div>
<br>
</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" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>