[Wrf-users] NCL Panel plot: How can I make the final image different from a square shape

Barry Lynn barry.h.lynn at gmail.com
Tue Nov 14 18:29:39 MST 2017


Hi:

I believe that the convert command can help.

Also, you might try plotting them across, not up and down.  This way the
panels will be able to fit the page (you don't want to plot rectangles, I
think).

;---Single plot with all trajectories

  map = create_map(wks,lat,lon)

  add_trajectories(wks,map,lat,lon,-1)

  add_markers(wks,map,lat,lon,pres,-1)

  draw_legend_at_bottom(wks,map,pres,headers(3:),False)

panres = True

panres at gsnMaximize = True

panres at gsnPanelRight = 0.95

panres at gsnPanelLeft  = 0.05

panres at gsnPanelTop = 0.95

panres at gsnPanelBottom  = 0.25


  draw(map)

  frame(wks)

   delete(wks)

   cmd = "convert -trim -geometry 7500x7500 +repage -border 8 -bordercolor
white -background white -flatten traj.000001.png traj.000001.png"

   cmd = "convert -trim -geometry 2500x2500 +repage -border 8 -bordercolor
white -background white -flatten traj.000002.png traj.000002.png"

   system(cmd)

On Wed, Nov 15, 2017 at 1:07 AM, Maxime Colin <m.colin at unsw.edu.au> wrote:

> Hi all,
>
>
> I'm drawing two plots vertically in a panel. I have used the examples on
> the website to make it work.
>
> But the figures I have end up on a square figure, with heaps of white
> space on the sides, which is not acceptable for a publication etc...
>
>
> How can I change the "size" of the panel plots based on the number of
> panels there is?
>
>
> I attach the final plot and the the associated script.
>
>
> Thank you for your ideas.
>
>
> Maxime.
>
>
> Maxime Colin
> ---------------------------------------------
> PhD candidate
> Climate Change Research Centre & ARC Centre of Excellence for Climate System Science, UNSW, Australia
> and Laboratoire de Météorologie Dynamique, UPMC, France
> http://www.ccrc.unsw.edu.au/ccrc-team/students/maxime-colin
> http://www.climatescience.org.au/staff/profile/mcolin
> ---------------------------------------------
> +61 (0)421 620 779 <+61%20421%20620%20779>    /    +33 (0)6 25 57 81 93 <+33%206%2025%2057%2081%2093>
> m.colin at unsw.edu.au    /     colinmaxime at hotmail.fr <https://www.normalesup.org/phare/squirrelmail/src/compose.php?send_to=maxime.colin%40normalesup.org>
>
>
>
> _______________________________________________
> Wrf-users mailing list
> Wrf-users at ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/wrf-users
>
>


-- 
Barry H. Lynn, Ph.D
Senior Lecturer,
The Institute of the Earth Science,
The Hebrew University of Jerusalem,
Givat Ram, Jerusalem 91904, Israel
Tel: 972 547 231 170
Fax: (972)-25662581

C.E.O, Weather It Is, LTD
Weather and Climate Focus
http://weather-it-is.com
Jerusalem, Israel
Local: 02 930 9525
Cell: 054 7 231 170
Int-IS: x972 2 930 9525
US 914 432 3108
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/wrf-users/attachments/20171115/829d2f7c/attachment.html>


More information about the Wrf-users mailing list