Answers for "matplotlib ticks"

0

change xticks python

plt.xticks(np.arange(0,10),np.arange(10,20))
Posted by: Guest on March-20-2020
-1

matplotlib limit number of ticks

plt.xaxis.set_major_locator(plt.MaxNLocator(3))
plt.yaxis.set_major_locator(plt.MaxNLocator(3))
Posted by: Guest on March-26-2020
-2

matplotlib custom ticks

axis.set_yticks([0.5,0.6,0.7,0.8,0.9,1.0])
Posted by: Guest on April-19-2021

Python Answers by Framework

Browse Popular Code Answers by Language