[ncl-talk] gsnContourPlot without a border
Mary Haley
haley at ucar.edu
Mon Aug 28 08:25:33 MDT 2017
Hi Michael,
I think the key, which may seem somewhat counterintuitive, is to not set
res at gsnMaximize = True. The reason for this is that gsnMaximize is actually
trying to resize things so they'll fit in a unit square, and apparently
it's adding a little of a margin (feature or bug, I'm not sure).
To force no border, I suggest not setting gsnMaximize, and you may also
want to set vpXF=0, vpYF=1, vpWidthF=1, and vpHeightF=1.
I've created an example script, attached.
--Mary
On Mon, Aug 28, 2017 at 2:35 AM, Michael Weston <mjweston at masdar.ac.ae>
wrote:
> Dear NCL users
>
> I am using gsn_csm_contour to plot a single png image of temperature from
> WRF.
> However the result produces a white border around the plot (e.g. attached).
> Is it possible to remove this border?
> Although doubtful, I tried;
> res at gsnAttachBorderOn = False
> res at mpPerimOn = False
>
> There are no overlays.
> Are there any other suggestions on solving this?
>
> Thanks and regards
>
> --
>
> *Michael* *Weston*
> Research Engineer
>
>
> *A Part of Khalifa University of Science and Technology*
>
> PO Box 54224, Abu Dhabi,
> United Arab Emirates
> Office +971 2 810 9510 <+971%202%20810%209510>
>
> Email mjweston at masdar.ac.ae
> http://www.masdar.ac.ae
>
>
> *Please consider the environment before printing this email*
>
> This transmission is confidential and intended solely for the person or
> organization to whom it is addressed. It may contain privileged and
> confidential information. If you are not the intended recipient, you should
> not copy, distribute or take any action in reliance on it. If you have
> received this transmission in error, please notify us immediately by e-mail
> at *info at masdar.ae <info at masdar.ae>**.*
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170828/629eb724/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: masdarlogo.jpg
Type: image/jpeg
Size: 5411 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170828/629eb724/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: contour_no_margin.png
Type: image/png
Size: 34812 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170828/629eb724/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: contour_no_margin.ncl
Type: application/octet-stream
Size: 631 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170828/629eb724/attachment.obj>
More information about the ncl-talk
mailing list