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.
1 parent 8013fe7 commit f30e583Copy full SHA for f30e583
1 file changed
lib/matplotlib/tests/test_axes.py
@@ -5224,6 +5224,20 @@ def test_axes_tick_params_gridlines():
5224
assert axis.majorTicks[0]._grid_linestyle == 'dashdot'
5225
5226
5227
+def test_axes_tick_params_ylabelside():
5228
+ # Tests fix for issue 10267
5229
+ ax = plt.subplot()
5230
+ ax.tick_params(labelleft=False, labelright=True,
5231
+ which='major')
5232
5233
+ which='minor')
5234
+ # expects left false, right true
5235
+ assert(ax.yaxis.majorTicks[0].label1On is False)
5236
+ assert(ax.yaxis.majorTicks[0].label2On is True)
5237
+ assert(ax.yaxis.minorTicks[0].label1On is False)
5238
+ assert(ax.yaxis.minorTicks[0].label2On is True)
5239
+
5240
5241
def test_none_kwargs():
5242
fig, ax = plt.subplots()
5243
ln, = ax.plot(range(32), linestyle=None)
0 commit comments