[ncl-talk] How can I get a full page plot ?
Roussan
rousslucas at gmail.com
Mon May 22 10:31:52 MDT 2017
Hello,
I would like to plot contours in full page at a given size (1366 x 844),
with no margins, no white spaces, just the plot at this dimmension.
Is it possible, or do I have to use imagemaick or graphicsmagick to crop
the output image ?
(I have disabled titles and labels.)
Here is the piece of code :
waveheight = fin->HTSGW_P0_L1_GLL0
delete(waveheight at long_name)
delete(waveheight at units)
wavedir = fin->DIRPW_P0_L1_GLL0
delete(wavedir at long_name)
delete(wavedir at units)
wks_type = "png"
wks_type at wkWidth = 1366
wks_type at wkHeight = 844
wks = gsn_open_wks(wks_type,outfile)
vres = True
vres at vcRefAnnoOn = False
res = True
res at gsnMaximize = True
res at lbLabelBarOn = False
res at lbTitleOn = False
vres at lbLabelBarOn = False
vres at lbTitleOn = False
plot = gsn_csm_contour_map(wks,waveheight,res)
plot_ov = gsn_csm_vector_scalar(wks, udir(:,:), vdir(:,:),waveheight,vres)
overlay(plot,plot_ov) ; overlay the U-wind plot on the
temperature plot
draw(plot) ; draw the temperature plot
(with the U-wind plot overlaid)
frame(wks) ; advance the frame
You will can see what I can achieve in attachement.
Thank you in advance
Ross.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170522/e5819928/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: out.png
Type: image/png
Size: 207442 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170522/e5819928/attachment.png
More information about the ncl-talk
mailing list