Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a02ffbc + c1b0756 commit e780592Copy full SHA for e780592
1 file changed
lib/matplotlib/ticker.py
@@ -81,6 +81,19 @@
81
82
The default minor locator is `NullLocator`, i.e., no minor ticks on by default.
83
84
+.. note::
85
+ `Locator` instances should not be used with more than one
86
+ `~matplotlib.axis.Axis` or `~matplotlib.axes.Axes`. So instead of::
87
+
88
+ locator = MultipleLocator(5)
89
+ ax.xaxis.set_major_locator(locator)
90
+ ax2.xaxis.set_major_locator(locator)
91
92
+ do the following instead::
93
94
+ ax.xaxis.set_major_locator(MultipleLocator(5))
95
+ ax2.xaxis.set_major_locator(MultipleLocator(5))
96
97
Tick formatting
98
---------------
99
0 commit comments