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
-4.45 KB
Loading

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy