[ncl-talk] gsnContourPlot without a border
Michael Weston
mjweston at masdar.ac.ae
Mon Aug 28 08:40:14 MDT 2017
Thank you Mary, that has done the trick.
Regards
Michael
On 28/08/2017 18:25, Mary Haley wrote:
> 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
> <mailto: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 <tel:+971%202%20810%209510>
>
> Email mjweston at masdar.ac.ae <mailto:mjweston at masdar.ac.ae>
> http://www.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 <mailto:info at masdar.ae>**.*
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu <mailto:ncl-talk at ucar.edu>
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> <http://mailman.ucar.edu/mailman/listinfo/ncl-talk>
>
>
--
*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
Email mjweston at masdar.ac.ae <mailto:mjweston at masdar.ac.ae>
http://www.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**.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170828/aa6cb178/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 5411 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170828/aa6cb178/attachment.jpe>
-------------- 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/aa6cb178/attachment.jpg>
More information about the ncl-talk
mailing list