<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12px"><div id="yui_3_16_0_1_1442088941204_13101"><span id="yiv1000221172yui_3_16_0_1_1442088941204_6737">(Sorry, re-sending as I didn't edit the subject line or CC the OP)<br></span></div><div id="yui_3_16_0_1_1442088941204_13209"><span id="yiv1000221172yui_3_16_0_1_1442088941204_6737"><br></span></div><div id="yui_3_16_0_1_1442088941204_13210"><span id="yiv1000221172yui_3_16_0_1_1442088941204_6737">Hi Sebastian,</span></div><div class="qtdSeparateBR"><br><br></div><div style="display: block;" id="yui_3_16_0_1_1442088941204_12574" class="yahoo_quoted"><div id="yui_3_16_0_1_1442088941204_12573" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12px;"><div id="yui_3_16_0_1_1442088941204_12572" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"><div id="yui_3_16_0_1_1442088941204_12571" class="y_msg_container"><div id="yiv1000221172"><div id="yui_3_16_0_1_1442088941204_12570"><div id="yui_3_16_0_1_1442088941204_12569" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12px;"><div id="yiv1000221172yui_3_16_0_1_1442088941204_4236"><br><span></span></div><div id="yiv1000221172yui_3_16_0_1_1442088941204_4327" dir="ltr"><span id="yiv1000221172yui_3_16_0_1_1442088941204_4326">I don't have a direct answer to your question... What I normally do with png output is to set the variables <i id="yui_3_16_0_1_1442088941204_12722">wkHeight</i> and <i id="yiv1000221172yui_3_16_0_1_1442088941204_7446">wkWidth</i> to large values so that the png output is very high resolution. So at the start of your script put something like:</span></div><div id="yiv1000221172yui_3_16_0_1_1442088941204_5242" dir="ltr"><br></div><div id="yiv1000221172yui_3_16_0_1_1442088941204_5241" dir="ltr"><b id="yiv1000221172yui_3_16_0_1_1442088941204_6743">type = "png"<br><span id="yiv1000221172yui_3_16_0_1_1442088941204_4326"></span></b></div><div id="yiv1000221172yui_3_16_0_1_1442088941204_4574" dir="ltr"><b id="yiv1000221172yui_3_16_0_1_1442088941204_6740"><span id="yiv1000221172yui_3_16_0_1_1442088941204_4326">type@wkWidth = 2888 ; set these to whatever values you want<br></span></b></div><div id="yiv1000221172yui_3_16_0_1_1442088941204_5240" dir="ltr"><b id="yiv1000221172yui_3_16_0_1_1442088941204_6742"><span id="yiv1000221172yui_3_16_0_1_1442088941204_4326">type@wkHeight = 2048 ;<br></span></b></div><div id="yiv1000221172yui_3_16_0_1_1442088941204_5238" dir="ltr"><b id="yiv1000221172yui_3_16_0_1_1442088941204_6741"><span id="yiv1000221172yui_3_16_0_1_1442088941204_4326">wks = gsn_open_wks(type,out_file_name)</span></b></div><b> </b><br><div id="yiv1000221172yui_3_16_0_1_1442088941204_3202" class="yiv1000221172qtdSeparateBR"><div dir="ltr" id="yiv1000221172yui_3_16_0_1_1442088941204_5394">Then at the very end of my script, I use the NCL "system" command to call ImageMagick to trim all of the white space at the edges of the plot. My script ends like this:</div><div id="yiv1000221172yui_3_16_0_1_1442088941204_5381"><b>...</b><br></div><div id="yiv1000221172yui_3_16_0_1_1442088941204_5992"><br></div><div dir="ltr" id="yiv1000221172yui_3_16_0_1_1442088941204_5382"><b id="yiv1000221172yui_3_16_0_1_1442088941204_6643">if (type .eq. "png") then<br class="yiv1000221172" id="yiv1000221172yui_3_16_0_1_1442088941204_5385"> system("convert -trim +repage " + out_file_name + ".png " + out_file_name + ".png ")<br class="yiv1000221172" id="yiv1000221172yui_3_16_0_1_1442088941204_5387">end if<br class="yiv1000221172" id="yiv1000221172yui_3_16_0_1_1442088941204_5389"></b></div><div id="yiv1000221172yui_3_16_0_1_1442088941204_6638" dir="ltr"><b><br></b></div><div id="yiv1000221172yui_3_16_0_1_1442088941204_6639" dir="ltr"><b id="yiv1000221172yui_3_16_0_1_1442088941204_6938">end</b><br></div><div id="yiv1000221172yui_3_16_0_1_1442088941204_6641"><br></div><div dir="ltr" id="yiv1000221172yui_3_16_0_1_1442088941204_6838">Also note that if you're making particularly large files then you may need to insert something like <b id="yiv1000221172yui_3_16_0_1_1442088941204_7085">*wsMaximumSize: 100000000</b> at the end of the .hluresfile in your home directory (I'm not sure if this still applies with the newest versions of NCL).<br></div><div id="yiv1000221172yui_3_16_0_1_1442088941204_7086"><br></div><div id="yiv1000221172yui_3_16_0_1_1442088941204_7087">Good luck!</div><div id="yiv1000221172yui_3_16_0_1_1442088941204_6839"><br></div><div id="yiv1000221172yui_3_16_0_1_1442088941204_7547">Dave.<br></div><div id="yiv1000221172yui_3_16_0_1_1442088941204_6840"><br></div></div><div style="display:block;" id="yiv1000221172yui_3_16_0_1_1442088941204_3199" class="yiv1000221172yahoo_quoted"> <div id="yiv1000221172yui_3_16_0_1_1442088941204_3198" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12px;"> <div id="yiv1000221172yui_3_16_0_1_1442088941204_3197" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div id="yiv1000221172yui_3_16_0_1_1442088941204_3201" dir="ltr"> <font id="yiv1000221172yui_3_16_0_1_1442088941204_3200" face="Arial" size="2"> On Saturday, September 12, 2015 9:27 PM, "ncl-talk-request@ucar.edu" <ncl-talk-request@ucar.edu> wrote:<br> </font> </div> Message:<br><div id="yiv1000221172yui_3_16_0_1_1442088941204_3196" class="yiv1000221172y_msg_container">Date: Sat, 12 Sep 2015 21:28:49 +0200<br>From: Sebastian Giersch <<a rel="nofollow" id="yiv1000221172yui_3_16_0_1_1442088941204_4328" ymailto="mailto:giersch@muk.uni-hannover.de" target="_blank" href="mailto:giersch@muk.uni-hannover.de">giersch@muk.uni-hannover.de</a>><br>Subject: [ncl-talk] Maximize png Output<br>To: <a rel="nofollow" id="yiv1000221172yui_3_16_0_1_1442088941204_7548" ymailto="mailto:ncl-talk@ucar.edu" target="_blank" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>Message-ID: <<a rel="nofollow" id="yiv1000221172yui_3_16_0_1_1442088941204_4159" ymailto="mailto:55F47CF1.5070301@muk.uni-hannover.de" target="_blank" href="mailto:55F47CF1.5070301@muk.uni-hannover.de">55F47CF1.5070301@muk.uni-hannover.de</a>><br>Content-Type: text/plain; charset="utf-8"<br><br><br>Dear NCL Users,<br><br>i would like to use the whole space of my 1300x859 png-Output (see<br>png1.1). I've tried a lot (e.g. gsnMaximize) but it doesn't work. The<br>height of the plot ist nearly perfect but the width is to small<br>(vpHeightF = 0.2, vpWidthF=0.6). When I change it in my .ncl file (e.g.<br>vpHeightF = 0.2, vpWidthF=1.5) I get the wrong result (see png1.2).<br>Therefore I ask you: How can I use all the space without any margin.<br><br>Beste regards,<br>Sebastian Giersch<br><br></div> </div> </div> </div></div></div></div><br><br></div> </div> </div> </div></div></body></html>