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.