Message Boards Message Boards

0
|
5878 Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:

How would I set axes font for a ListLinePlot

Posted 10 years ago

This is probably an extremely simple question. Is it possible to change the axis font for ListLinePlot?

POSTED BY: Doug Kimzey
3 Replies

The FontFamily seems to work on both axes, I'm not detecting differences between

ListLinePlot[Prime[Range[25]], Filling -> Axis, PlotStyle -> LightGray, BaseStyle -> {FontFamily -> "Consolas", FontSize -> 40}]

and

ListLinePlot[Prime[Range[25]], Filling -> Axis, PlotStyle -> LightGray, LabelStyle -> {FontFamily -> "Consolas", FontSize -> 40}]

especially the 20 looks on y-axis the same like on x-axis, doesn't it?

POSTED BY: Udo Krause

Hi Udo - Thanks for the reply.

I am trying to use:

SetOptions[ListLinePlot, PlotStyle -> LightGray, 
  BaseStyle -> {FontFamily -> "Consolas", FontSize -> 10}];

which partially works. The FontFamily is only applied to the ordinate. The FontSize seems to work on both axes. I'm wondering if there is a way to set the FontFamily for both Axes.

POSTED BY: Doug Kimzey

Wouldn't

ListLinePlot[Prime[Range[25]], Filling -> Axis, TicksStyle -> Directive[Red, Bold, 48]]

do the job?

POSTED BY: Udo Krause
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract