<div dir="ltr"><div class="gmail_default" style="font-size:small">​Luis,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Did you get this resolved?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I think the basic issue is that since you are using the wrf_xxxx functions to do graphics and not gsn_csm_xxxx, you have to maximize the size of the plot yourself.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you add a call to:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">drawNDCGrid(wks)</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">(one of the most awesome functions in NCL, thanks to Adam Phillips)</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">before</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">draw(plot)</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">then this helps you see how much you can change the position and increase the size of the plot, using vpXF / vpYF / vpWidthF / vpHeightF resources.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Using this information, I added the following to your code, after plot was created, but before "draw" was called:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">setvalues plot</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">  "vpXF"      : 0.1</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">  "vpYF"      : 0.98</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">  "vpWidthF"  : 0.82</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">  "vpHeightF" : 0.82</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">end setvalues</font></div><br>Using a wrfout file I had, I got the attached results (I included the script too).<br><br><div class="gmail_default" style="font-size:small">​In order to make the drawing go faster, I set cnFillMode to "RasterFill". This was for debug purposes, and you likely want to remove or comment that line.​</div><br>--Mary<div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Note: I've set the width and height exactly to a square.  When you overlay on a map, the ratio will be adjusted to fix the correct ratio of your map, which means one of the sides of your plots may be reduced slightly.</div><div class="gmail_default" style="font-size:small"><br></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><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 16, 2018 at 5:13 AM, Luis Cesareo Cana Cascallar <span dir="ltr"><<a href="mailto:luis.cana@ulpgc.es" target="_blank">luis.cana@ulpgc.es</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div>
<div class="m_1074070785210491070BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="m_1074070785210491070PlainText">Thanks Mary, the plot looks much better but there is still some blank space at the bottom. See attached plot. Also, I send you the whole script to see how I set the resources see what I did wrong.</div>
</span></font></div>
<div><img src="cid:96d631b2-86a2-4ebd-ab31-ab7120a7cc04@eurprd02.prod.outlook.com">
</div>
<div class="m_1074070785210491070BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="m_1074070785210491070PlainText"><br>
<br>
Best, <br>
<br>
Luis<br>
<br>
> El 14 jul 2018, a las 19:00, <a href="mailto:ncl-talk-request@ucar.edu" target="_blank">ncl-talk-request@ucar.edu</a> escribió:<br>
> <br>
> Send ncl-talk mailing list submissions to<br>
>        <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
> <br>
> To subscribe or unsubscribe via the World Wide Web, visit<br>
>        <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
> or, via email, send a message with subject or body 'help' to<br>
>        <a href="mailto:ncl-talk-request@ucar.edu" target="_blank">ncl-talk-request@ucar.edu</a><br>
> <br>
> You can reach the person managing the list at<br>
>        <a href="mailto:ncl-talk-owner@ucar.edu" target="_blank">ncl-talk-owner@ucar.edu</a><br>
> <br>
> When replying, please edit your Subject line so it is more specific<br>
> than "Re: Contents of ncl-talk digest..."<br>
> <br>
> <br>
> Today's Topics:<br>
> <br>
>   1. Re: About removing blank space at the bottom of figures<br>
>      (Mary Haley)<br>
> <br>
> <br>
> ------------------------------<wbr>------------------------------<wbr>----------<br>
> <br>
> Message: 1<br>
> Date: Fri, 13 Jul 2018 22:03:36 -0600<br>
> From: Mary Haley <<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>><br>
> To: Luis Cesareo Cana Cascallar <<a href="mailto:luis.cana@ulpgc.es" target="_blank">luis.cana@ulpgc.es</a>><br>
> Cc: "<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>" <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br>
> Subject: Re: [ncl-talk] About removing blank space at the bottom of<br>
>        figures<br>
> Message-ID:<br>
>        <CACNN_CKoU-E4V=<a href="mailto:bcVH6rMZHc_WLTmTM77P9tQJj29jefgLAv4A@mail.gmail.com" target="_blank">bcVH6rMZHc_<wbr>WLTmTM77P9tQJj29jefgLAv4A@<wbr>mail.gmail.com</a>><br>
> Content-Type: text/plain; charset="utf-8"<br>
> <br>
> Without seeing your whole script, I can't be sure of the problem because I<br>
> don't know which resources are being used with which function call.<br>
> <br>
> However, please visit our WRF titles examples page:<br>
> <br>
> <a href="http://www.ncl.ucar.edu/Applications/wrftitles.shtml#ex3" target="_blank">http://www.ncl.ucar.edu/<wbr>Applications/wrftitles.shtml#<wbr>ex3</a><br>
> <br>
> and look at example wrf_title_3.ncl which shows how to get rid of the extra<br>
> titles.  You'll notice there's no white space at the top or bottom of this<br>
> plot.<br>
> <br>
> --Mary<br>
> <br>
> <br>
> On Fri, Jul 13, 2018 at 8:09 AM, Luis Cesareo Cana Cascallar <<br>
> <a href="mailto:luis.cana@ulpgc.es" target="_blank">luis.cana@ulpgc.es</a>> wrote:<br>
> <br>
>> Hi,<br>
>> <br>
>> I?m plotting several images and I?d like to remove the extra space at the<br>
>> bottom of the image (see attached example). I?m using gsnMaximize to use as<br>
>> much area as possible:<br>
>> <br>
>> ******************<br>
>> res = True<br>
>> ;res@MainTitle = "SBF with ECMWF data, WRF-3.9.1"        ;Give plot a<br>
>> main title<br>
>> res@tiMainOn = False                         <wbr>   ;<br>
>> res@Footer = False                         <wbr>                    ; Set<br>
>> Footers off<br>
>> pltres = True                          <wbr>                     ; Plotting<br>
>> resources<br>
>> pltres@PanelPlot = True                          ; add text and locations<br>
>> pltres@gsnMaximize = True                   ; full size<br>
>> mpres = True<br>
>> ******************<br>
>> <br>
>> But notice the blank space at the bottom.<br>
>> I?ve tried to split the image in several files and use ImageMagick to trim<br>
>> each one of them, but retaining a high quality image. However, the size of<br>
>> the resulting image is really big (7,2 Mb). Any suggestion? I?m using the<br>
>> following command:<br>
>> <br>
>> convert -alpha off -background white -density 300 -trim Fig04a.ps<br>
>> Fig04a.eps<br>
>> <br>
>> Best,<br>
>> <br>
>> Luis Cana<br>
>> ULPGC<br>
>> <br>
>> Antes de imprimir este correo electr?nico, piense bien si es necesario<br>
>> hacerlo: el medio ambiente es una cuesti?n de todos.<br>
>> <br>
>> Please consider the environment before printing this email.<br>
>> <br>
>> ______________________________<wbr>_________________<br>
>> ncl-talk mailing list<br>
>> <a href="mailto:ncl-talk@ucar.edu" target="_blank">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/<wbr>mailman/listinfo/ncl-talk</a><br>
>> <br>
>> <br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180713/0d63dc25/attachment-0001.html" target="_blank">http://mailman.ucar.edu/<wbr>pipermail/ncl-talk/<wbr>attachments/20180713/0d63dc25/<wbr>attachment-0001.html</a>><br>
> -------------- next part --------------<br>
> A non-text attachment was scrubbed...<br>
> Name: SBF_10_WRF_simul01.000017.png<br>
> Type: image/png<br>
> Size: 167070 bytes<br>
> Desc: not available<br>
> URL: <<a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180713/0d63dc25/attachment-0001.png" target="_blank">http://mailman.ucar.edu/<wbr>pipermail/ncl-talk/<wbr>attachments/20180713/0d63dc25/<wbr>attachment-0001.png</a>><br>
> <br>
> ------------------------------<br>
> <br>
> Subject: Digest Footer<br>
> <br>
> ______________________________<wbr>_________________<br>
> ncl-talk mailing list<br>
> <a href="mailto:ncl-talk@ucar.edu" target="_blank">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/<wbr>mailman/listinfo/ncl-talk</a><br>
> <br>
> <br>
> ------------------------------<br>
> <br>
> End of ncl-talk Digest, Vol 176, Issue 18<br>
> ******************************<wbr>***********<br>
> <br>
> Antes de imprimir este correo electrónico, piense bien si es necesario hacerlo: el medio ambiente es una cuestión de todos.<br>
> <br>
> Please consider the environment before printing this email.<br>
<br>
</div>
</span></font></div>
<br>
<p><span style="color:rgb(75,165,36)">Antes de imprimir este correo electrónico, piense bien si es necesario hacerlo: el medio ambiente es una cuestión de todos.</span>
</p>
<p><span style="color:rgb(75,165,36)">Please consider the environment before printing this email.</span></p>
</div>

<br>______________________________<wbr>_________________<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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>