Mathematica - Change graph font size

Click For Summary
SUMMARY

The discussion focuses on changing the font size of tick labels on the x and y axes in Mathematica plots. The user sugaku successfully modifies the font size of axis labels using the command Plot[Sin[x],{x,0,100},AxesLabel->{Style["t",Italic,Large]}]. For tick labels, the solution involves using TicksStyle -> Directive[15] within the Plot function, allowing for customization of font size and style. Additional formatting options, such as color and boldness, can also be applied using TicksStyle -> Directive[Red, Bold, 20, Italic].

PREREQUISITES
  • Familiarity with Mathematica syntax and functions
  • Understanding of the Plot function in Mathematica
  • Knowledge of styling options using Style and Directive
  • Basic concepts of graph customization in Mathematica
NEXT STEPS
  • Explore advanced graph customization techniques in Mathematica
  • Learn about the Style function for text formatting in Mathematica
  • Investigate the use of TicksStyle for further axis customization
  • Review Mathematica documentation on the Plot function and its options
USEFUL FOR

This discussion is beneficial for Mathematica users, data visualizers, and anyone looking to enhance the presentation of their plots through font and style adjustments.

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
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 2 ·
Replies
2
Views
5K