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

Skip to content

Commit e3b777f

Browse files
committed
API/TST: update test image for new log clipping behavior
1 parent b81b323 commit e3b777f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/matplotlib/tests/test_path.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,15 @@ def test_path_clipping():
8787
xy, facecolor='none', edgecolor='red', closed=True))
8888

8989

90-
@image_comparison(baseline_images=['semi_log_with_zero'], extensions=['png'])
90+
@image_comparison(baseline_images=['semi_log_with_zero'], extensions=['png'],
91+
style='mpl20')
9192
def test_log_transform_with_zero():
9293
x = np.arange(-10, 10)
9394
y = (1.0 - 1.0/(x**2+1))**20
9495

9596
fig, ax = plt.subplots()
96-
ax.semilogy(x, y, "-o", lw=15)
97+
ax.semilogy(x, y, "-o", lw=15, markeredgecolor='k')
98+
ax.set_ylim(1e-7, 1)
9799
ax.grid(True)
98100

99101

0 commit comments

Comments
 (0)