MathGroup Archive 2006

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

Search the Archive

Re: Different text style for labels and ticks


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