Re: Problem with spacing between plots in a panel plot

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Thu Jul 05 2012 - 21:20:16 MDT

Hi Soumik,
Your top 4 plots are not taking up all of the space you are allotting to them. They are maxed out on the page horizontally, and they are only taking up roughly 0.5-0.9 of vertical NDC space. To take up more space, NCL would need to alter the aspect ratio of the plot(s), something it won't do unless you tell it to. (Setting res@mpShapeMode= "FreeAspect" would do that. )

Try setting gsnPanelTop for your bottom 2 plots to 0.45 (instead of 0.3)..
Hope that helps.. Adam

On Jul 5, 2012, at 6:21 PM, Soumik Basu <sbasu@iarc.uaf.edu> wrote:

> Hi,
>
> I am trying to create a panel plot containing 6 plots. But I am having
> problem with the space between the plots.I am plotting the first four
> plots with a particular colorbar and the last two with another colorbar.
> Can anybody please suggest me what is going wrong.
>
> The panel plot resources (I am sending only the two separate resource
> parts of my script) I am using are as follows:
>
> ;************************************************
> ; create first set panel plot(top four of the panel)
> ;************************************************
> resPanel = True
>
> resPanel@gsnFrame = False
>
> resPanel@gsnSpreadColors = True
> resPanel@gsnPanelLabelBar = True ; add
> color bar
> resPanel@gsnPanelFigureStrings = (/"a","b","c","d"/)
> resPanel@gsnPanelFigureStringsFontHeightF = 0.02
> resPanel@gsnPanelFigureStringsPerimOn = True
> resPanel@gsnPanelDebug = True
> resPanel@gsnPanelTop = 0.9
> resPanel@gsnPanelBottom = 0.3 ;move bottom up
> from 0 to 0.4
> resPanel@gsnPanelLeft = 0.0
> resPanel@gsnPanelRight = 0.9
> resPanel@gsnPanelDebug = True
>
> resPanel@lbOrientation = "Vertical"
> resPanel@lbLabelAutoStride = False
> resPanel@lbLabelStride = 5
>
> gsn_panel(wks,plot,(/2,2/),resPanel)
>
> ;************************************************
> ; create last 2 of panel plot
> ;************************************************
> dresPanel = True
>
> dresPanel@gsnFrame = False
> dresPanel@gsnSpreadColors = True
> dresPanel@gsnMaximize = True ; use full
> page
> dresPanel@gsnPanelLabelBar = True ; add
> color bar
> dresPanel@gsnPanelTop = 0.3
> dresPanel@gsnPanelBottom = 0.1
> dresPanel@gsnPanelLeft = 0.0
> dresPanel@gsnPanelRight = 0.9
> dresPanel@gsnPanelFigureStrings = (/"e","f"/)
> dresPanel@gsnPanelFigureStringsFontHeightF = 0.02
> dresPanel@gsnPanelFigureStringsPerimOn = True
> dresPanel@gsnPanelDebug = True
>
> dresPanel@lbOrientation = "Vertical"
> dresPanel@lbLabelAutoStride = False
> dresPanel@lbLabelStride = 10
>
> gsn_panel (wks,plot1,(/1,2/),dresPanel)
> frame(wks)
>
>
> Thanks,
> Soumik
>
>
> --
> "Numbing the pain for a while will make it worse when you finally feel it.
> ~J.K. Rowling"
> *****************************************
> Soumik Basu
> Graduate Student, Research Assistant
> International Arctic Research Center
> University of Alaska Fairbanks
> Fairbanks,Alaska,USA
> *****************************************
> <eady_eke_var_diff_spring_winter.000001.png>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Jul 5 21:19:24 2012

This archive was generated by hypermail 2.1.8 : Mon Jul 09 2012 - 10:45:32 MDT