Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

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: [mg66741] RE: [mg66686] Different text style for labels and ticks
  • From: "David Annetts" <davidannetts at aapt.net.au>
  • Date: Sun, 28 May 2006 06:08:25 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

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