Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

show only integer values matplotlib

from matplotlib.ticker import MaxNLocator

ax = plt.figure().gca()
ax.yaxis.set_major_locator(MaxNLocator(integer=True))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #show #integer #values #matplotlib
ADD COMMENT
Topic
Name
7+1 =