Re: A different font size for each line in PlotLabel
- To: mathgroup at smc.vnet.net
- Subject: [mg80248] Re: [mg80195] A different font size for each line in PlotLabel
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Wed, 15 Aug 2007 04:28:12 -0400 (EDT)
- Reply-to: hanlonr at cox.net
You could use the FrameLabel as the subtitle
Needs["BarCharts`"];
BarChart[{1, 2, 3},
PlotLabel -> StyleForm["Title", FontSize -> 20],
Frame -> True,
FrameTicks -> {Range[3], Automatic, None, None},
FrameLabel -> {None, None, "Subtitle"}]
Bob Hanlon
---- tomfabtastic at hotmail.com wrote:
> Hello,
>
> Does anyone know how to use two fonts in a PlotLabel, where the title
> spans two lines. For example:
>
> Needs["BarCharts`"]
> BarChart[{1, 2, 3}, PlotLabel -> "Title" <> "\n" <> "Subtitle"]
>
> The above produces a graph where the Title and Subtitle are on
> different lines and are the same FontSize.
>
> I would like "Title" to be FontSize -> 20 and "Subtitle" to be
> FontSize -> 10 (and to remain on different lines).
>
> If I use the below I get an error because "Title" is no longer a
> string.
> BarChart[{1, 2, 3}, PlotLabel -> StyleForm["Title", FontSize -> 20] <>
> "\n" <> "Subtitle"]
>
> But then if I use ToString, the FontSize goes back to default size:
>
> BarChart[{1, 2, 3}, PlotLabel -> ToString[StyleForm["Title", FontSize -
> > 20]] <> "\n" <> "Subtitle"]
>
; Any suggestions would be greatly appreciated.
>
> Thanks,
> Tom
>
>