Created
July 22, 2019 12:38
-
-
Save willprice/005dfce014d75797ab64a1f02512777a to your computer and use it in GitHub Desktop.
Set tick spacing on matplotlib axis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from matplotlib import ticker | |
ax.yaxis.set_major_locator(ticker.MultipleLocator(tick_spacing)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment