Mathematica Mathematica - Change graph font size

Click For Summary
To change the font size of numbers on the x and y axes in a plot, the TicksStyle option can be utilized. The command Plot[x, {x, 0, 1}, TicksStyle -> Directive[15]] successfully modifies the font size of the tick labels. Additionally, other styling options such as color and font weight can be applied using TicksStyle, as demonstrated with the command Plot[x, {x, 0, 1}, TicksStyle -> Directive[Red, Bold, 20, Italic]]. This allows for comprehensive customization of axis labels and tick marks in plots.
sugaku
Messages
16
Reaction score
0
Good day to all,

I need help on how to change font size for numbers in x and y axis. For axes label I could change the font size using below command, but how about the scaling itself.

Plot[Sin[x],{x,0,100},AxesLabel->{Style["t",Italic,Large]}]

Thank you in advance.

Regards,
sugaku
 
Physics news on Phys.org
Plot[x, {x, 0, 1}, TicksStyle -> Directive[15]]

the 15 is the font, it actually took a while to find this, ticks are not listed as an option of plot, but it is.

can also make other changes:

Plot[x, {x, 0, 1}, TicksStyle -> Directive[Red, Bold, 20, Italic]]
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 0 ·
Replies
0
Views
626
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 1 ·
Replies
1
Views
5K