Skip to content

Commit 741bb4d

Browse files
committed
fix test
1 parent 20534cd commit 741bb4d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/matplotlib/lines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ def draw(self, renderer):
777777
if self.is_dashed() and self._offcolor is not None:
778778
lc_rgba = mcolors.to_rgba(self._offcolor, self._alpha)
779779
gc.set_foreground(lc_rgba, isRGBA=True)
780-
gc.set_dashes(None, None)
780+
gc.set_dashes(0, None)
781781
renderer.draw_path(gc, tpath, affine.frozen())
782782

783783
lc_rgba = mcolors.to_rgba(self._color, self._alpha)

lib/matplotlib/tests/test_lines.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,8 @@ def test_marker_as_markerstyle():
303303
assert_array_equal(line3.get_marker().vertices, triangle1.vertices)
304304

305305

306-
@image_comparison(['striped_lines'], extensions=['png'])
307-
def text_striped_lines():
306+
@image_comparison(['striped_line.png'], remove_text=True, style='mpl20')
307+
def test_striped_lines():
308308
fig, ax = plt.subplots()
309309
ax.plot(range(10), color='orange', offcolor='blue', linestyle='--', lw=5)
310310

0 commit comments

Comments
 (0)