[ncl-talk] making a non-square .png plot
David Brown
dbrown at ucar.edu
Tue Jun 30 17:41:07 MDT 2015
Hi Gary,
Using the gsnMaximize resource it is possible to fill an 8.5 x 11 area
if you create PDF or PS output. But PNG output can only ever fill the
largest square inside the specified rectangle. So cropping after
creating the plot is the only way to get what you want.
We are aware of this problem and have been looking into what is needed
for a fix.
Rick Brownrigg may have more to say about this issue.
-dave
On Tue, Jun 30, 2015 at 3:23 PM, Gary Bates - NOAA Affiliate
<gary.bates at noaa.gov> wrote:
> Hi,
> I'm trying to make a panel plot for a .ppt presentation, which I'd like to
> have a width and height of 11 x 8.5. Unfortunately, ncl wants to make
> square .png plots.
>
> I can make a non-square frame by specifying the number of pixels for height
> and width like:
>
> wks_type = "png"
> wks_type at wkWidth = 1100
> wks_type at wkHeight = 850
>
> But this gives me a lot of white space around my plot. I there a way to
> make a non-square .png so that it fills the frame more completely? Or is
> the only solution to make the plot and crop it later?
>
> Thanks,
> Gary
>
> --
> Gary Bates
> NOAA/ESRL/PSD
> Boulder, CO
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
More information about the ncl-talk
mailing list