MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: A different font size for each line in PlotLabel

  • To: mathgroup at smc.vnet.net
  • Subject: [mg80234] Re: A different font size for each line in PlotLabel
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Wed, 15 Aug 2007 04:20:55 -0400 (EDT)
  • Organization: Uni Leipzig
  • References: <f9s49s$apa$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de

Hi,

eeds["BarCharts`"]
BarChart[{1, 2, 3},
  PlotLabel ->
   Column[{StyleForm["Title", FontSize -> 20], "Subtitle"}]]

Regards
   Jens

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
> 
> 


  • Prev by Date: Re: Question about memory consumption in my codes by using Mathematica
  • Next by Date: Re: Reproducible kernel crash
  • Previous by thread: Re: A different font size for each line in PlotLabel
  • Next by thread: Re: A different font size for each line in PlotLabel