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

Skip to content

Commit 3faebcf

Browse files
committed
Actually use some unused variables
1 parent eec341a commit 3faebcf

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

examples/text_labels_and_annotations/arrow_demo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ def make_arrow_graph(ax, data, size=4, display='length', shape='right',
116116
fc=fc, ec=ec or fc, alpha=alpha, width=width,
117117
head_width=head_width, head_length=head_length, shape=shape,
118118
length_includes_head=True,
119+
**kwargs
119120
)
120121

121122
# figure out coordinates for text:

lib/matplotlib/tests/test_polar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ def test_default_thetalocator():
375375

376376
def test_axvspan():
377377
ax = plt.subplot(projection="polar")
378-
span = plt.axvspan(0, np.pi/4)
378+
span = ax.axvspan(0, np.pi/4)
379379
assert span.get_path()._interpolation_steps > 1
380380

381381

lib/mpl_toolkits/tests/test_mplot3d.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1024,8 +1024,10 @@ def test_lines_dists():
10241024
ys = (100, 150, 30, 200)
10251025
ax.scatter(xs, ys)
10261026

1027-
dist = proj3d._line2d_seg_dist(p0, p1, (xs[0], ys[0]))
1027+
dist0 = proj3d._line2d_seg_dist(p0, p1, (xs[0], ys[0]))
10281028
dist = proj3d._line2d_seg_dist(p0, p1, np.array((xs, ys)))
1029+
assert dist0 == dist[0]
1030+
10291031
for x, y, d in zip(xs, ys, dist):
10301032
c = Circle((x, y), d, fill=0)
10311033
ax.add_patch(c)

0 commit comments

Comments
 (0)