Re: panel plot: common title and subtitle

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon Apr 09 2012 - 13:23:30 MDT

Hi Cecile,

There's no "easy" way to do a common subtitle with a panel plot. There are some tricks, though, to do this.

If you want the two titles to be the same size, then you can use the special "~C~" function code to insert a carriage return in the middle of a title:

   resP@txString = "This is my common title~C~This is my subtitle"

The "~C~" gives you a line feed, and doesn't automatically center the second title, so you'll have to insert spaces yourself to center it:

   resP@txString = "This is my common title~C~ This is my subtitle"

Otherwise, if you want to have two center titles, and one is bigger than the other, the easiest thing to do is to
set resP@gsnPanelTop to leave some extra space for two titles, and then call gsn_text_ndc twice to add the
two titles. See the attached script and attached image.

--Mary

On Apr 9, 2012, at 10:54 AM, Cecile Hannay wrote:

> I have a panel plot and I would like to add a common title and a common subtitle.
> I know how to add a common title with:
> resP@txString
> Is there a way to add a common subtitle (or a common title with 2 lines)
>
> Thanks
> Cecile
>
> --
> ++++++++++++++++++++++++++++++++++++++++++++
> Cecile Hannay
> National Center for Atmospheric Research
> email:
> hannay@ucar.edu
>
> phone: 303-497-1327
> webpage:
> http://www.cgd.ucar.edu/cms/hannay
>
> ++++++++++++++++++++++++++++++++++++++++++++
>
> _______________________________________________
> 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

panel.png
Received on Mon Apr 9 13:23:49 2012

This archive was generated by hypermail 2.1.8 : Mon Apr 09 2012 - 13:43:03 MDT