Re: Adjusting plots in panels after labels are removed

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Fri, 17 Apr 2009 13:18:03 -0600

You can also panel plots of different sizes by not using gsn_panel,
and instead
setting the vpXF, vpYF, vpWidthF, and vpHeightF resources for each plot.
The problem with this is then you have to generate your own labelbar.

For example of using vp* resources, see example 20 at: http://www.ncl.ucar.edu/Applications/panel.shtml

And then to add your own labelbar, see example 15 at: http://www.ncl.ucar.edu/Applications/maponly.shtml#ex15

--Mary

On Apr 16, 2009, at 5:43 PM, <Mark.Collier_at_csiro.au> <Mark.Collier_at_csiro.au
> wrote:

> Hi Mary,
> yes that is a novel way of doing it. I forgot about the paneling
> requirement. Some of
> the axis are affected by the white fonts, but I suppose that is
> minor and would be acceptable
> publishable plots.
> Thanks again,
> Mark.
> ________________________________________
> From: Mary Haley [haley_at_ucar.edu]
> Sent: Friday, 17 April 2009 1:34 AM
> To: Collier, Mark (CMAR, Aspendale)
> Cc: ncl-talk_at_ucar.edu
> Subject: Re: Adjusting plots in panels after labels are
> removed
>
> Hi Mark,
>
> Turning off the labels for two of the four plots makes these
> two plots smaller than the others, and hence the paneling
> doesn't work.
>
> One thing you can do is to go ahead and let the labels
> be drawn, but draw them in white so you can't see them. This
> way, the plots are all the same size.
>
> Then, you can use gsnPanelYF to reposition the 2nd and 4th plots
> so they are closer. to the 1st and three plots.
>
> Please see the attached test.ncl
>
> --Mary
>
>
> On Thu, 16 Apr 2009 Mark.Collier_at_csiro.au wrote:
>
>> Hi,
>> I've attached a script and data for a plot, I'm trying to get each
>> plot to have same size
>> once axis labels are removed. When I try to add the x-axis labels
>> for the bottom 2
>> plots NCL seems to hang.
>>
>> with
>> res_at_tmXBLabelsOn = True
>>
>> before
>>
>> plots(2)=gsn_csm_contour_map(wks,eot3,res)
>>
>> however, I still need to resize the right 2 panels however
>> pnlres_at_gsnPanelXF
>> pnlres_at_gsnPanelYF
>>
>> only change the corner position, not the relative size. Is there a
>> resource so that I can rescale the right 2 panels? Most of them
>> seem to influence the amount of whitespace, but I want to keep
>> whitespace to a minimum.
>>
>> One other thing, I'm wondering if "states" can be switched on or
>> off individually? For example, remove everyone except for the
>> Queensland border.
>>
>> uname -a
>> Linux cherax 2.6.16.54-0.2.12-default #1 SMP Fri Oct 24 02:16:38
>> UTC 2008 ia64 ia64 ia64 GNU/Linux
>> gcc -v
>> Using built-in specs.
>> Target: ia64-suse-linux
>> Configured with: ../configure --enable-threads=posix --prefix=/usr
>> --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/
>> usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-
>> languages=c,c++,objc,fortran,obj-c++,java,ada --enable-
>> checking=release --with-gxx-include-dir=/usr/include/c++/4.1.2 --
>> enable-ssp --disable-libssp --disable-libgcj --with-slibdir=/lib --
>> with-system-zlib --enable-shared --enable-__cxa_atexit --enable-
>> libstdcxx-allocator=new --program-suffix= --enable-version-specific-
>> runtime-libs --with-system-libunwind --host=ia64-suse-linux
>> Thread model: posix
>> gcc version 4.1.2 20070115 (prerelease) (SUSE Linux)
>>
>> Many thanks,
>> Mark.
>>
>> CSIRO Marine and Atmospheric Research
>> Australia.
>>
> _______________________________________________
> 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 Fri Apr 17 2009 - 13:18:03 MDT

This archive was generated by hypermail 2.2.0 : Mon Apr 20 2009 - 09:36:23 MDT