Plot delhi, then place a y tick every 20 with a locator rather than by hand
Matplotlib · from Ticks and labels
ax.set_xticksMultipleLocatorStrMethodFormatterDateFormatterax.tick_paramsax.marginsPutting the kettle on…
Starting up…
Exercise 2
Plot delhi, then place a y tick every 20 with a locator rather than by hand. Return [int(v) for v in ax.get_yticks()].
your answer
stuck? the lesson behind it
Ticks and labels
Locators say where, formatters say what — almost every tick problem is one of the two