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 c0eeae9 commit 43d4498Copy full SHA for 43d4498
lib/matplotlib/tests/test_pyplot.py
@@ -314,9 +314,9 @@ def test_subplot_change_projection():
314
315
def test_polar_second_call():
316
# the first call creates the axes with polar projection
317
- h1 = plt.polar(0., 1., 'ro')
318
- assert isinstance(h1[0], mpl.lines.Line2D)
+ ln1, = plt.polar(0., 1., 'ro')
+ assert isinstance(ln1, mpl.lines.Line2D)
319
# the second call should reuse the existing axes
320
- h2 = plt.polar(1.57, .5, 'bo')
321
- assert isinstance(h2[0], mpl.lines.Line2D)
322
- assert h1[0].axes is h2[0].axes
+ ln2, = plt.polar(1.57, .5, 'bo')
+ assert isinstance(ln2, mpl.lines.Line2D)
+ assert ln1.axes is ln2.axes
0 commit comments