Mathematica - Change graph font size

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 26K views
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]]