Answers for "xticks range matplotlib"

0

turn off xticks matplotlib

# for matplotlib.pyplot
# ---------------------
plt.xticks([], [])
# for axis object
# ---------------
# from Anakhand May 5 at 13:08
# for major ticks
ax.set_xticks([])
# for minor ticks
ax.set_xticks([], minor=True)
Posted by: Guest on October-11-2020
0

change x axis frequency

start, end = ax.get_xlim()
ax.xaxis.set_ticks(np.arange(start, end, stepsize))
Posted by: Guest on May-06-2020
1

xticks and yticks matplotlib

#x-ticks: 
plt.xticks(start, stop, step))
#y-ticks:
plt.yticks(np.arange(start,stop,step))
Posted by: Guest on August-09-2021

Python Answers by Framework

Browse Popular Code Answers by Language