Skip to content

Commit 0b02f2d

Browse files
committed
Merge branch 'v3.10.x' into merge_up_3.10.3
2 parents 6dcfa9d + e82b493 commit 0b02f2d

16 files changed

+335
-179
lines changed

azure-pipelines.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ stages:
119119
VS_VER=2022
120120
121121
echo "##vso[task.setvariable variable=VS_COVERAGE_TOOL]$TOOL"
122-
123122
PYTHONFAULTHANDLER=1 pytest -rfEsXR -n 2 \
124123
--maxfail=50 --timeout=300 --durations=25 \
125124
--junitxml=junit/test-results.xml --cov-report=xml --cov=lib

doc/_static/mpl.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,3 +220,15 @@ div.wide-table table th.stub {
220220
.sidebar-cheatsheets > img {
221221
width: 100%;
222222
}
223+
224+
.sidebar-cheatsheets {
225+
margin-bottom: 3em;
226+
}
227+
228+
.sidebar-cheatsheets > h3 {
229+
margin-top: 0;
230+
}
231+
232+
.sidebar-cheatsheets > img {
233+
width: 100%;
234+
}

doc/_static/switcher.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
33
"name": "3.10 (stable)",
4-
"version": "3.10.1",
4+
"version": "3.10.3",
55
"url": "https://matplotlib.org/stable/",
66
"preferred": true
77
},

doc/users/github_stats.rst

Lines changed: 121 additions & 148 deletions
Large diffs are not rendered by default.
Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
1+
.. _github-stats-3_10_1:
2+
3+
GitHub statistics for 3.10.1 (Feb 27, 2025)
4+
===========================================
5+
6+
GitHub statistics for 2024/12/14 (tag: v3.10.0) - 2025/02/27
7+
8+
These lists are automatically generated, and may be incomplete or contain duplicates.
9+
10+
We closed 14 issues and merged 107 pull requests.
11+
The full list can be seen `on GitHub <https://github.com/matplotlib/matplotlib/milestone/98?closed=1>`__
12+
13+
The following 28 authors contributed 241 commits.
14+
15+
* Anselm Hahn
16+
* Antony Lee
17+
* Ben Greiner
18+
* Chaoyi Hu
19+
* Christine P. Chai
20+
* dependabot[bot]
21+
* Elliott Sales de Andrade
22+
* G.D. McBain
23+
* Greg Lucas
24+
* hannah
25+
* hu-xiaonan
26+
* Khushi_29
27+
* Khushikela29
28+
* KIU Shueng Chuan
29+
* Kyle Martin
30+
* Kyle Sunden
31+
* Lumberbot (aka Jack)
32+
* Manthan Nagvekar
33+
* musvaage
34+
* Nathan G. Wiseman
35+
* Oscar Gustafsson
36+
* Owl
37+
* Ruth Comer
38+
* saikarna913
39+
* Scott Shambaugh
40+
* Thomas A Caswell
41+
* Tim Hoffmann
42+
* Trygve Magnus Ræder
43+
44+
GitHub issues and pull requests:
45+
46+
Pull Requests (107):
47+
48+
* :ghpull:`29682`: Backport PR #29680 on branch v3.10.x (DOC: fix the bug of examples\event_handling)
49+
* :ghpull:`29683`: Backport PR #29670 on branch v3.10.x (DOC: change marginal scatter plot to subplot_mosaic)
50+
* :ghpull:`29680`: DOC: fix the bug of examples\event_handling
51+
* :ghpull:`29676`: Backport PR #29666 on branch v3.10.x (DOC: Revising the Figure Legend Demo Example)
52+
* :ghpull:`29675`: Backport PR #29662 on branch v3.10.x (DOC: Move Colorbar parameters to __init__)
53+
* :ghpull:`29662`: DOC: Move Colorbar parameters to __init__
54+
* :ghpull:`29668`: Backport PR #29667 on branch v3.10.x (DOC: remove redundant gridspec from example)
55+
* :ghpull:`29664`: Backport PR #29642 on branch v3.10.x (DOC: Add docstrings to get_usetex and set_usetex in ticker.py)
56+
* :ghpull:`29663`: Backport PR #29075 on branch v3.10.x (Add xaxis and yaxis attributes to Axes docs)
57+
* :ghpull:`29642`: DOC: Add docstrings to get_usetex and set_usetex in ticker.py
58+
* :ghpull:`29661`: Backport PR #29652 on branch v3.10.x (Reorder kwonly kwargs in Colorbar & related docs.)
59+
* :ghpull:`29652`: Reorder kwonly kwargs in Colorbar & related docs.
60+
* :ghpull:`29075`: Add xaxis and yaxis attributes to Axes docs
61+
* :ghpull:`29656`: Backport PR #28437 on branch v3.10.x (Respect array alpha with interpolation_stage='rgba' in _Imagebase::_make_image)
62+
* :ghpull:`29448`: Backport PR #29362 on branch v3.10.0-doc (TYP: semantics of enums in stub files changed)
63+
* :ghpull:`28437`: Respect array alpha with interpolation_stage='rgba' in _Imagebase::_make_image
64+
* :ghpull:`29651`: Backport PR #29650 on branch v3.10.x (Copy-edit "interactive figures & async programming" guide.)
65+
* :ghpull:`29650`: Copy-edit "interactive figures & async programming" guide.
66+
* :ghpull:`29633`: Backport PR #29631 on branch v3.10.x (Add inline notebook to test data)
67+
* :ghpull:`29631`: Add inline notebook to test data
68+
* :ghpull:`29627`: Backport PR #29617 on branch v3.10.x (DOC: Add docstrings to matplotlib.cbook.GrouperView)
69+
* :ghpull:`29617`: DOC: Add docstrings to matplotlib.cbook.GrouperView
70+
* :ghpull:`29625`: Backport PR #29622 on branch v3.10.x (DOC: Move "Infinite lines" example from section "pyplot" to "Lines, bars and markers)
71+
* :ghpull:`29623`: Backport PR #29621 on branch v3.10.x (DOC: Cleanup text rotation in data coordinates example)
72+
* :ghpull:`29619`: Backport PR #29616 on branch v3.10.x (FIX: Fix unit example so that we can unpin numpy<2.1)
73+
* :ghpull:`29616`: FIX: Fix unit example so that we can unpin numpy<2.1
74+
* :ghpull:`29611`: Backport PR #29608 on branch v3.10.x (Remove md5 usage to prevent issues on FIPS enabled systems (closes #29603))
75+
* :ghpull:`29608`: Remove md5 usage to prevent issues on FIPS enabled systems (closes #29603)
76+
* :ghpull:`29609`: Backport PR #29607 on branch v3.10.x (Correct doc for axvline arg x which sets x not y)
77+
* :ghpull:`29604`: Backport PR #29601 on branch v3.10.x (DOC: Duplicate categorical values are mapped to the same position)
78+
* :ghpull:`29598`: Backport PR #29597 on branch v3.10.x (Fix typo in deprecation notes for 3.10.0)
79+
* :ghpull:`29591`: Backport PR #29585 on branch v3.10.x (DOC: Document that tight_layout may not converge)
80+
* :ghpull:`29585`: DOC: Document that tight_layout may not converge
81+
* :ghpull:`29587`: Backport PR #25801 on branch v3.10.x (Remove some examples from Userdemo)
82+
* :ghpull:`29577`: Backport PR #29576 on branch v3.10.x (Remove documentation for no-longer existent ContourSet attributes.)
83+
* :ghpull:`29576`: Remove documentation for no-longer existent ContourSet attributes.
84+
* :ghpull:`29530`: Bump the actions group with 5 updates
85+
* :ghpull:`29564`: Backport PR #29563 on branch v3.10.x (DOC: add color sequences reference example)
86+
* :ghpull:`29563`: DOC: add color sequences reference example
87+
* :ghpull:`29557`: Backport PR #29518: TST: Increase tolerance on more arches
88+
* :ghpull:`29555`: Backport PR #29546 on branch v3.10.x (FIX: pyplot.matshow figure handling)
89+
* :ghpull:`29546`: FIX: pyplot.matshow figure handling
90+
* :ghpull:`29518`: TST: Increase tolerance on more arches
91+
* :ghpull:`29547`: Backport PR #29543 on branch v3.10.x (DOC: Minor improvement on broken_barh())
92+
* :ghpull:`29538`: Backport PR #29536 on branch v3.10.x (Fix typo in solarized example plot.)
93+
* :ghpull:`29531`: Backport PR #29520 on branch v3.10.x (FIX: Correct variable name from _frame to _frames in PillowWriter class)
94+
* :ghpull:`29520`: FIX: Correct variable name from _frame to _frames in PillowWriter class
95+
* :ghpull:`29521`: Backport PR #29509 on branch v3.10.x (MNT: Discourage arrow())
96+
* :ghpull:`29509`: MNT: Discourage arrow()
97+
* :ghpull:`29514`: Backport PR #29511 on branch v3.10.x (DOC: Document the behavior of bar() for categorical x data)
98+
* :ghpull:`29513`: Backport PR #29471 on branch v3.10.x (Fix subplot docs)
99+
* :ghpull:`29511`: DOC: Document the behavior of bar() for categorical x data
100+
* :ghpull:`29471`: Fix subplot docs
101+
* :ghpull:`29500`: Backport PR #29478 on branch v3.10.x (DOC: Added blurb for colorizer objects in what's new for 3.10)
102+
* :ghpull:`29498`: Backport PR #29488 on branch v3.10.x (DOC: Update broken_barh example)
103+
* :ghpull:`29490`: Backport PR #29476 on branch v3.10.x (ci: Enable native ARM builders for wheels)
104+
* :ghpull:`29476`: ci: Enable native ARM builders for wheels
105+
* :ghpull:`29462`: Backport PR #29404 on branch v3.10.x (DOC: scales - built in options and custom scale usefulness)
106+
* :ghpull:`29459`: Backport PR #29456 on branch v3.10.x (DOC: Fix type descriptions in fill_between docstring)
107+
* :ghpull:`29404`: DOC: scales - built in options and custom scale usefulness
108+
* :ghpull:`29458`: Backport PR #29457 on branch v3.10.x (DOC: Use float instead for scalar for type descriptions in docstrings)
109+
* :ghpull:`29456`: DOC: Fix type descriptions in fill_between docstring
110+
* :ghpull:`29457`: DOC: Use float instead for scalar for type descriptions in docstrings
111+
* :ghpull:`29452`: Backport PR #29411 on branch v3.10.x (fix #29410 Modifying Axes' position also alters the original Bbox object used for initialization)
112+
* :ghpull:`29411`: fix #29410 Modifying Axes' position also alters the original Bbox object used for initialization
113+
* :ghpull:`29451`: Backport PR #29449 on branch v3.10.x (ci: Install libnotify4 on all Ubuntu)
114+
* :ghpull:`29449`: ci: Install libnotify4 on all Ubuntu
115+
* :ghpull:`29444`: Backport PR #29442 on branch v3.10.x (DOC: put section headings in 3.10 what's new)
116+
* :ghpull:`29436`: Backport PR #29407 on branch v3.10.x (DOC: Improve log scale example)
117+
* :ghpull:`29432`: Backport PR #29431 on branch v3.10.x (ft2font: Split named instance count from style flags)
118+
* :ghpull:`29431`: ft2font: Split named instance count from style flags
119+
* :ghpull:`29423`: Backport PR #29130 on branch v3.10.x (Raise warning if both c and facecolors are used in scatter plot (... and related improvements in the test suite).)
120+
* :ghpull:`29420`: Backport PR #29406 on branch v3.10.x (DOC: Update scales overview)
121+
* :ghpull:`29417`: Backport PR #29409 on branch v3.10.x (Fixed test case(test_axes.py) failing on ppc64le)
122+
* :ghpull:`29416`: Backport PR #29382 on branch v3.10.x (Fix title position for polar plots)
123+
* :ghpull:`29382`: Fix title position for polar plots
124+
* :ghpull:`29412`: Backport PR #29363 on branch v3.10.x (FIX: Add version gate to GTK4 calls when necessary)
125+
* :ghpull:`29409`: Fixed test case(test_axes.py) failing on ppc64le
126+
* :ghpull:`29363`: FIX: Add version gate to GTK4 calls when necessary
127+
* :ghpull:`29408`: Backport PR #29401 on branch v3.10.x (FIX: add errorbars with ``add_container``)
128+
* :ghpull:`29401`: FIX: add errorbars with ``add_container``
129+
* :ghpull:`29130`: Raise warning if both c and facecolors are used in scatter plot (... and related improvements in the test suite).
130+
* :ghpull:`29390`: Backport PR #29389 on branch v3.10.x (DOC: Minor improvements on VPacker, HPacker, PaddedBox docs)
131+
* :ghpull:`29389`: DOC: Minor improvements on VPacker, HPacker, PaddedBox docs
132+
* :ghpull:`29371`: Backport PR #29353 on branch v3.10.x (DOC: Improve module docs of matplotlib.scale)
133+
* :ghpull:`29361`: Backport PR #29355 on branch v3.10.x (Add QtCore.Slot() decorations to FigureCanvasQT)
134+
* :ghpull:`29369`: Backport PR #29362 on branch v3.10.x (TYP: semantics of enums in stub files changed)
135+
* :ghpull:`29353`: DOC: Improve module docs of matplotlib.scale
136+
* :ghpull:`29362`: TYP: semantics of enums in stub files changed
137+
* :ghpull:`29365`: Backport PR #29364 on branch v3.10.x (fix typo)
138+
* :ghpull:`29366`: Backport PR #29347 on branch v3.10.x (DOC: Explain parameters linthresh and linscale of symlog scale)
139+
* :ghpull:`29364`: fix typo
140+
* :ghpull:`29355`: Add QtCore.Slot() decorations to FigureCanvasQT
141+
* :ghpull:`29351`: Backport PR #29348 on branch v3.10.x (DOC: Cleanup scales examples)
142+
* :ghpull:`29336`: Backport PR #29328 on branch v3.10.x (Bump github/codeql-action from 3.27.6 to 3.27.9 in the actions group)
143+
* :ghpull:`29328`: Bump github/codeql-action from 3.27.6 to 3.27.9 in the actions group
144+
* :ghpull:`29330`: Backport PR #29321 on branch v3.10.x (DOC: List min. Python version for Matplotlib 3.10)
145+
* :ghpull:`29324`: Backport PR #29258 on branch v3.10.x (Adding font Size as default parameter)
146+
* :ghpull:`29326`: Backport PR #29323 on branch v3.10.x (DOC: Don't put quotes around coordinate system names)
147+
* :ghpull:`29323`: DOC: Don't put quotes around coordinate system names
148+
* :ghpull:`29258`: Adding font Size as default parameter
149+
* :ghpull:`29320`: Backport PR #29317 on branch v3.10.x (FIX: pass renderer through ``_auto_legend_data``)
150+
* :ghpull:`29317`: FIX: pass renderer through ``_auto_legend_data``
151+
* :ghpull:`29315`: Backport PR #29314 on branch v3.10.x (DOC: fix footnote in choosing colormaps guide)
152+
* :ghpull:`29309`: Backport PR #29308 on branch v3.10.x (Update cibuildwheel workflow)
153+
* :ghpull:`29310`: Backport PR #29292 on branch v3.10.x (Update dependencies.rst)
154+
* :ghpull:`29308`: Update cibuildwheel workflow
155+
156+
Issues (14):
157+
158+
* :ghissue:`28382`: [Bug]: interpolation_stage="rgba" does not respect array-alpha
159+
* :ghissue:`28780`: Doc build fails with numpy>=2.1.0
160+
* :ghissue:`29603`: [Bug]: Setting ``text.usetex=True`` in ``pyplot.rcParams`` Raises FIPS Compliance Errors
161+
* :ghissue:`29575`: [Doc]: QuadContourSet does not contain a collections attribute like stated in the manual
162+
* :ghissue:`29519`: [Bug]: 'PillowWriter' object has no attribute '_frame' shouldn't be '_frames'?
163+
* :ghissue:`29507`: [Bug]: Duplicating the labels in the ``height``/``width`` argument in ``barh()``/``bar`` leads to undrawn bars
164+
* :ghissue:`29447`: [Doc]: ``subplot`` behavior is not same as the doc reads in 3.10(stable)
165+
* :ghissue:`29410`: [Bug]: Modifying Axes' position also alters the original Bbox object used for initialization
166+
* :ghissue:`29396`: [Bug]: Style flag errors trying to save figures as PDF with font Inter
167+
* :ghissue:`29381`: [Bug]: title position incorrect for polar plot
168+
* :ghissue:`29350`: [Bug]: Matplotlib causes segmentation fault when hovering mouse over graph
169+
* :ghissue:`25274`: [Bug]: .remove() on ErrorbarContainer object does not remove the corresponding item from the legend
170+
* :ghissue:`29202`: [Bug]: ``fontsize`` in tables not working
171+
* :ghissue:`29301`: [Bug]: Blank EPS output with legend and annotate

doc/users/release_notes.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Version 3.10
2222
../api/prev_api_changes/api_changes_3.10.0.rst
2323
github_stats.rst
2424
prev_whats_new/github_stats_3.10.0.rst
25+
prev_whats_new/github_stats_3.10.1.rst
2526

2627
Version 3.9
2728
^^^^^^^^^^^

lib/matplotlib/tests/test_axes.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def test_repr():
7575
"label='label', title={'center': 'title'}, xlabel='x', ylabel='y'>")
7676

7777

78-
@check_figures_equal()
78+
@check_figures_equal(extensions=['png'])
7979
def test_label_loc_vertical(fig_test, fig_ref):
8080
ax = fig_test.subplots()
8181
sc = ax.scatter([1, 2], [1, 2], c=[1, 2], label='scatter')
@@ -94,7 +94,7 @@ def test_label_loc_vertical(fig_test, fig_ref):
9494
cbar.set_label("Z Label", y=1, ha='right')
9595

9696

97-
@check_figures_equal()
97+
@check_figures_equal(extensions=['png'])
9898
def test_label_loc_horizontal(fig_test, fig_ref):
9999
ax = fig_test.subplots()
100100
sc = ax.scatter([1, 2], [1, 2], c=[1, 2], label='scatter')
@@ -113,7 +113,7 @@ def test_label_loc_horizontal(fig_test, fig_ref):
113113
cbar.set_label("Z Label", x=0, ha='left')
114114

115115

116-
@check_figures_equal()
116+
@check_figures_equal(extensions=['png'])
117117
def test_label_loc_rc(fig_test, fig_ref):
118118
with matplotlib.rc_context({"xaxis.labellocation": "right",
119119
"yaxis.labellocation": "top"}):
@@ -2250,7 +2250,7 @@ def test_bar_pandas_indexed(pd):
22502250

22512251

22522252
@mpl.style.context('default')
2253-
@check_figures_equal()
2253+
@check_figures_equal(extensions=['png'])
22542254
def test_bar_hatches(fig_test, fig_ref):
22552255
ax_test = fig_test.subplots()
22562256
ax_ref = fig_ref.subplots()
@@ -3299,7 +3299,7 @@ def layers(n, m):
32993299
axs[1, 1].stackplot(range(100), d.T, baseline='weighted_wiggle')
33003300

33013301

3302-
@check_figures_equal()
3302+
@check_figures_equal(extensions=['png'])
33033303
def test_stackplot_hatching(fig_ref, fig_test):
33043304
x = np.linspace(0, 10, 10)
33053305
y1 = 1.0 * x
@@ -3468,7 +3468,7 @@ def test_bxp_customwhisker():
34683468
whiskerprops=dict(linestyle='-', color='m', lw=3)))
34693469

34703470

3471-
@check_figures_equal()
3471+
@check_figures_equal(extensions=['png'])
34723472
def test_boxplot_median_bound_by_box(fig_test, fig_ref):
34733473
data = np.arange(3)
34743474
medianprops_test = {"linewidth": 12}
@@ -4276,7 +4276,7 @@ def test_errorbar_colorcycle():
42764276
assert mcolors.to_rgba(ln1.get_color()) == mcolors.to_rgba('C2')
42774277

42784278

4279-
@check_figures_equal()
4279+
@check_figures_equal(extensions=['png'])
42804280
def test_errorbar_cycle_ecolor(fig_test, fig_ref):
42814281
x = np.arange(0.1, 4, 0.5)
42824282
y = [np.exp(-x+n) for n in range(4)]
@@ -4475,7 +4475,7 @@ def test_xerr_yerr_not_none():
44754475
ax.errorbar(x=[0], y=[0], yerr=[[None], [1]])
44764476

44774477

4478-
@check_figures_equal()
4478+
@check_figures_equal(extensions=['png'])
44794479
def test_errorbar_every(fig_test, fig_ref):
44804480
x = np.linspace(0, 1, 15)
44814481
y = x * (1-x)
@@ -5322,7 +5322,7 @@ def test_eb_line_zorder():
53225322
ax.set_title("errorbar zorder test")
53235323

53245324

5325-
@check_figures_equal()
5325+
@check_figures_equal(extensions=['png'])
53265326
def test_axline_loglog(fig_test, fig_ref):
53275327
ax = fig_test.subplots()
53285328
ax.set(xlim=(0.1, 10), ylim=(1e-3, 1))
@@ -5335,7 +5335,7 @@ def test_axline_loglog(fig_test, fig_ref):
53355335
ax.loglog([1, 10], [1e-3, 1e-2], c="k")
53365336

53375337

5338-
@check_figures_equal()
5338+
@check_figures_equal(extensions=['png'])
53395339
def test_axline(fig_test, fig_ref):
53405340
ax = fig_test.subplots()
53415341
ax.set(xlim=(-1, 1), ylim=(-1, 1))
@@ -5358,7 +5358,7 @@ def test_axline(fig_test, fig_ref):
53585358
ax.axvline(-0.5, color='C5')
53595359

53605360

5361-
@check_figures_equal()
5361+
@check_figures_equal(extensions=['png'])
53625362
def test_axline_transaxes(fig_test, fig_ref):
53635363
ax = fig_test.subplots()
53645364
ax.set(xlim=(-1, 1), ylim=(-1, 1))
@@ -5375,7 +5375,7 @@ def test_axline_transaxes(fig_test, fig_ref):
53755375
ax.plot([0, 0], [-1, 1], color='C3')
53765376

53775377

5378-
@check_figures_equal()
5378+
@check_figures_equal(extensions=['png'])
53795379
def test_axline_transaxes_panzoom(fig_test, fig_ref):
53805380
# test that it is robust against pan/zoom and
53815381
# figure resize after plotting
@@ -6431,7 +6431,7 @@ def test_normalize_kwarg_pie():
64316431
assert abs(t2[0][-1].theta2 - 360.) > 1e-3
64326432

64336433

6434-
@check_figures_equal()
6434+
@check_figures_equal(extensions=['png'])
64356435
def test_pie_hatch_single(fig_test, fig_ref):
64366436
x = [0.3, 0.3, 0.1]
64376437
hatch = '+'
@@ -6440,7 +6440,7 @@ def test_pie_hatch_single(fig_test, fig_ref):
64406440
[w.set_hatch(hatch) for w in wedges]
64416441

64426442

6443-
@check_figures_equal()
6443+
@check_figures_equal(extensions=['png'])
64446444
def test_pie_hatch_multi(fig_test, fig_ref):
64456445
x = [0.3, 0.3, 0.1]
64466446
hatch = ['/', '+', '.']
@@ -9516,7 +9516,7 @@ def test_boxplot_tick_labels():
95169516

95179517

95189518
@needs_usetex
9519-
@check_figures_equal()
9519+
@check_figures_equal(extensions=['png'])
95209520
def test_latex_pie_percent(fig_test, fig_ref):
95219521

95229522
data = [20, 10, 70]

lib/matplotlib/tests/test_colors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1676,7 +1676,7 @@ def test_scalarmappable_norm_update():
16761676
assert sm.stale
16771677

16781678

1679-
@check_figures_equal()
1679+
@check_figures_equal(extensions=['png'])
16801680
def test_norm_update_figs(fig_test, fig_ref):
16811681
ax_ref = fig_ref.add_subplot()
16821682
ax_test = fig_test.add_subplot()

lib/matplotlib/tests/test_image.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def test_imshow_zoom(fig_test, fig_ref):
122122
ax.set_ylim([10, 20])
123123

124124

125-
@check_figures_equal()
125+
@check_figures_equal(extensions=['png'])
126126
def test_imshow_pil(fig_test, fig_ref):
127127
style.use("default")
128128
png_path = Path(__file__).parent / "baseline_images/pngsuite/basn3p04.png"
@@ -1384,7 +1384,7 @@ def test_huge_range_log(fig_test, fig_ref, x):
13841384
interpolation='nearest', cmap=cmap)
13851385

13861386

1387-
@check_figures_equal()
1387+
@check_figures_equal(extensions=['png'])
13881388
def test_spy_box(fig_test, fig_ref):
13891389
# setting up reference and test
13901390
ax_test = fig_test.subplots(1, 3)

lib/matplotlib/tests/test_legend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,7 @@ def test_legend_markers_from_line2d():
12621262
assert labels == new_labels
12631263

12641264

1265-
@check_figures_equal()
1265+
@check_figures_equal(extensions=['png'])
12661266
def test_ncol_ncols(fig_test, fig_ref):
12671267
# Test that both ncol and ncols work
12681268
strings = ["a", "b", "c", "d", "e", "f"]

0 commit comments

Comments
 (0)