MathGroup Archive 2006

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

Search the Archive

Re: Different text style for labels and ticks

  • To: mathgroup at smc.vnet.net
  • Subject: [mg66744] Re: Different text style for labels and ticks
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
  • Date: Sun, 28 May 2006 06:08:34 -0400 (EDT)
  • Organization: The Open University, Milton Keynes, UK
  • References: <e5926f$39e$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

János wrote:
> Hi,
> 
> I am wondering if it is possible to specify a different text style in  
> a (Multiple)ListPlot for PlotLabel and Ticks.  If I just use it like:
> 
> TextStyle -> {FontFamily -> "Times", FontSize -> 14},
> 
> it affects all texts in the plot including PlotLabel, AxesLabel and  
> Ticks.  I would like Ticks to have a different TextStyle - need  
> smaller characters there -, and PlotLabel to have bigger text, even  
> bold.
You can use the function *StyleForm* [1]. For instance
Plot[Sin[x], {x, 0, 2*Pi}, TextStyle ->
     {FontFamily -> "Times", FontSize -> 24},
    PlotLabel -> StyleForm["Hello", FontSize -> 16,
      FontColor -> Red]];

HTH,
Jean-Marc

[1] http://documents.wolfram.com/mathematica/functions/StyleForm


  • Prev by Date: Initialize a matrix in mathematica
  • Next by Date: RE: Different text style for labels and ticks
  • Previous by thread: RE: Different text style for labels and ticks
  • Next by thread: RE: Different text style for labels and ticks