A
A
Artyom Innokentiev2015-12-18 00:17:59
Python
Artyom Innokentiev, 2015-12-18 00:17:59

How to set axes font size in matplotlib?

How to set the font size of numbers on the x and y axes in matplotlib?
PS used mainly by pyplot.scatter and pyplot.plot

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2015-12-18
@artinnok

Like this:

import matplotlib.pyplot as plt
plt.figure(1)
plt.plot([1,2,3,4])
plt.tick_params(axis='both', which='major', labelsize=16)
plt.show()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question