[ncl-talk] How to shorten the distance between sub-plot without showing the tmYLLabels?

Dennis Shea shea at ucar.edu
Mon Apr 13 09:54:08 MDT 2015


Also, if the labelbars are all the same, I'd suggest that you use a common
label bar. See:
  http://www.ncl.ucar.edu/Applications/panel.shtml
  Example 3 is one example

Maybe, a vertical label bar would be good. Try different resources.

res at lbLabelBarOn = False           ; turn off individual lb

  resP                     = True                ; modify the panel plot
  resP at txString            = "A plot with a common label bar"
  resP at gsnPanelLabelBar    = True                ; add common colorbar
  resP at lbLabelFontHeightF  = 0.007               ; make labels smaller

;;res at lbOrientation  = "Vertical" ; vertical label bar
  gsn_panel(wks,plot,(/2,1/),resP)               ; now draw as one plot

Also see Example 6

 resP at gsnPanelYWhiteSpacePercent = 5
 resP at gsnPanelXWhiteSpacePercent = 5



On Mon, Apr 13, 2015 at 9:41 AM, Adam Phillips <asphilli at ucar.edu> wrote:

> Hi Lin,
> By default NCL uses the space allocated to the first panel plot as the
> space used for all other panel plots. In your case the labeling on the left
> Y axis makes the first plot much bigger than the other plots. You can tell
> NCL to use the space allocated to any other paneled plot by setting
> <http://www.ncl.ucar.edu/Document/Graphics/Resources/gsn.shtml#gsnPanelScalePlotIndex>gsnPanelScalePlotIndex
> = 1 in your panel resource list. See example #24 here:
> www.ncl.ucar.edu/Applications/panel.shtml#ex24
>
> The (more direct ) way to modify the locations of paneled plots is to use
> the output from gsnPanelDebug to set the X/Y locations of each panel
> individually. See example #19 here:
> www.ncl.ucar.edu/Applications/panel.shtml#ex19
>
> Hope that helps. If not, please respond to the ncl-talk email list.
> Adam
>
>
> On Sun, Apr 12, 2015 at 9:28 AM, 林祥 <xianglin72 at icloud.com> wrote:
>
>> Hi, all
>>
>>
>>        I made 5 plots and panel them into a figures. I don't want to show
>> the Labels for the left Y Axis of these plots except for
>>
>> the leftmost one, however,  the distances  between these plots seem too
>> large (See the attached eps files).  Anyone can help me
>>
>> to shorten the distance between these plots?
>>
>>
>> Thanks!
>>
>>
>>
>> Lin
>>
>>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
>
>
> --
> Adam Phillips
> Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR
> www.cgd.ucar.edu/staff/asphilli/   303-497-1726
>
> <http://www.cgd.ucar.edu/staff/asphilli>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150413/91138ebb/attachment.html 


More information about the ncl-talk mailing list