Re: White space between panel plots

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon Feb 13 2012 - 08:26:57 MST

The issue is that both plots are different sizes, in that one plot has no labels on the bottom and labels on the top, and the other plot has the opposite.

gsn_panel is trying to keep boxes around the plots (not including all the tickmkarks and labels) the same size, and is hence unaware of the differences in the two plots' axes labels.

One thing you can try is to set

   res@gsnPanelYF = (/-1,some_value/)

Where "some_value" is a value like 0.5. You may have to play with this. It will specify the Y location of the second plot in the frame, allowing you to move it up or down.

The -1 for the first plot just means keep the value that gsn_panel calculates.

--Mary

On Feb 11, 2012, at 3:41 PM, Xin Xi wrote:

> I have set res_panel@gsnPanelYWhiteSpacePercent = 0.0; The previous figure was what it looked like - the white space on the top disappeared but the white space between plots didnot.
>
> On Sat, Feb 11, 2012 at 9:36 AM, Dennis Shea <shea@ucar.edu> wrote:
> http://www.ncl.ucar.edu/Document/Graphics/Resources/gsn.shtml
>
> res@gsnPanelYWhiteSpacePercent = 0.0 ; default is 1.0
>
> On 2/11/12 1:29 AM, Xin Xi wrote:
> > Hi there,
> > How can I remove the white space between the subplots on this panel
> > plot? These two subplots are the same size. I played different resources
> > but didnot work it out. thanks!
> >
> > plts = new(nplt,graphic)
> >
> > res@tmXBLabelsOn = False ; no bottom labels
> > res@tmXBOn = False ; no bottom tickmarks
> > tiXAxisSide = "Top"
> > plts(0) = gsn_csm_contour_map(wks,keep_50s,res)
> >
> > res@tmXTLabelsOn = False ; do not draw
> > top labels
> > res@tmXTOn = False ; no top tickmarks
> > delete(res@tmXBLabelsOn)
> > delete(res@tmXBOn)
> > tiXAxisSide = "Bottom"
> > plts(1) = gsn_csm_contour_map(wks,keep_90s,res)
> >
> >
> >
> >
> > _______________________________________________
> > 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
>
> _______________________________________________
> 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 Mon Feb 13 08:27:05 2012

This archive was generated by hypermail 2.1.8 : Fri Feb 17 2012 - 08:50:10 MST