Answers for "ax tick size matplotlib"

3

adjust tick label size matplotlib

plt.xticks(fontsize=)
Posted by: Guest on May-11-2020
0

increase axis ticks pyplot

x = [0,5,9,10,16]
y = [0,1,2,3,5]

x_ticks = np.arange(0, 16, 5)
plt.xticks(x_ticks)

y_ticks = np.arange(0, 5, 2)
plt.yticks(y_ticks)

plt.plot(x, y)
Posted by: Guest on May-01-2021

Python Answers by Framework

Browse Popular Code Answers by Language