Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

matplotlib plot title font size

from matplotlib import pyplot as plt    

fig = plt.figure()
plt.plot(data)
fig.suptitle('test title', fontsize=20)
plt.xlabel('xlabel', fontsize=18)
plt.ylabel('ylabel', fontsize=16)
fig.savefig('test.jpg')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #matplotlib #plot #title #font #size
ADD COMMENT
Topic
Name
2+7 =