Answers for "show only integer values matplotlib"

0

show only integer values matplotlib

from matplotlib.ticker import MaxNLocator

ax = plt.figure().gca()
ax.yaxis.set_major_locator(MaxNLocator(integer=True))
Posted by: Guest on February-19-2022

Code answers related to "show only integer values matplotlib"

Python Answers by Framework

Browse Popular Code Answers by Language