File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -5353,3 +5353,19 @@ def test_patch_deprecations():
5353
5353
assert fig .patch == fig .figurePatch
5354
5354
5355
5355
assert len (w ) == 2
5356
+
5357
+
5358
+ def test_polar_gridlines ():
5359
+ fig = plt .figure ()
5360
+ ax = fig .add_subplot (111 , polar = True )
5361
+
5362
+ # make all major grid lines lighter, only x grid lines set in 2.1.0
5363
+ ax .grid (alpha = 0.2 )
5364
+
5365
+ # hide y tick labels, no effect in 2.1.0
5366
+ plt .setp (ax .yaxis .get_ticklabels (), visible = False )
5367
+
5368
+ fig .canvas .draw ()
5369
+
5370
+ assert ax .xaxis .majorTicks [0 ].gridline .get_alpha () == .2
5371
+ assert ax .yaxis .majorTicks [0 ].gridline .get_alpha () == .2
Original file line number Diff line number Diff line change @@ -1287,6 +1287,10 @@ def __radd__(self, other):
1287
1287
# override `__eq__`), but some subclasses, such as TransformWrapper &
1288
1288
# AffineBase, override this behavior.
1289
1289
1290
+ if six .PY2 :
1291
+ def __ne__ (self , other ):
1292
+ return not (self == other )
1293
+
1290
1294
def _iter_break_from_left_to_right (self ):
1291
1295
"""
1292
1296
Returns an iterator breaking down this transform stack from left to
You can’t perform that action at this time.
0 commit comments