Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9ee9f3e

Browse files
committed
STY: tweak unpacking in polar test a bit
1 parent 6c6acfc commit 9ee9f3e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/matplotlib/tests/test_pyplot.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -314,9 +314,9 @@ def test_subplot_change_projection():
314314

315315
def test_polar_second_call():
316316
# the first call creates the axes with polar projection
317-
h1 = plt.polar(0., 1., 'ro')
318-
assert isinstance(h1[0], mpl.lines.Line2D)
317+
ln1, = plt.polar(0., 1., 'ro')
318+
assert isinstance(ln1, mpl.lines.Line2D)
319319
# 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
320+
ln2, = plt.polar(1.57, .5, 'bo')
321+
assert isinstance(ln2, mpl.lines.Line2D)
322+
assert ln1.axes is ln2.axes

0 commit comments

Comments
 (0)