Answers for "matplotlib set_xticklabels font size"

1

matplotlib set_ylabel 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')
Posted by: Guest on March-30-2021
1

matplotlib xticks font size

plt.xticks(fontsize=14, rotation=90)
Posted by: Guest on March-24-2020

Python Answers by Framework

Browse Popular Code Answers by Language