MathGroup Archive 2006

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

Search the Archive

RE: Different text style for labels and ticks


Hi Janos,
 
> 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.
> 
> I tried Epilog - hoping that I can draw the PlotLabel after 
> the plot is done - with no success.

You can certainly specify different fonts for different parts of you plots.


If you set up your ticks as you've done (TextStyle), then you can use
StyleForm to cutomise other labelling, eg.

Plot[Sin[x], {x, -Pi, Pi}, 
    PlotLabel -> StyleForm["PlotLabel
    ", FontFamily -> "Times", FontWeight -> "Bold", FontSize -> 14],
    FrameLabel -> {StyleForm["X axis", FontFamily ->
         "Times", FontWeight -> "Bold", FontSize -> 
        14, FontSlant -> "Oblique"],
        StyleForm["Y axis", FontFamily -> 
      "Times", FontWeight -> "Bold", FontSize -> 15, FontColor -> Red],
        None, None}];

Regards,

Dave.


  • Prev by Date: Re: Different text style for labels and ticks
  • Next by Date: Re: Defining N for a new entity
  • Previous by thread: Re: Different text style for labels and ticks
  • Next by thread: parenthesis in reactions...