Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 78a8146

Browse filesBrowse files
committed
TST: Remove compatibility styling for images that have been updated
If we've updated an image in the past couple commits, then we can remove the backwards-compatibility styling so that they're generated as intended.
1 parent 785e2bd commit 78a8146
Copy full SHA for 78a8146

File tree

Expand file treeCollapse file tree

4 files changed

+0
-20
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+0
-20
lines changed

‎lib/matplotlib/tests/test_agg_filter.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_agg_filter.py
-3Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
@image_comparison(baseline_images=['agg_filter_alpha'],
88
extensions=['gif', 'png', 'pdf'])
99
def test_agg_filter_alpha():
10-
# Remove this line when this test image is regenerated.
11-
plt.rcParams['pcolormesh.snap'] = False
12-
1310
ax = plt.axes()
1411
x, y = np.mgrid[0:7, 0:8]
1512
data = x**2 - y**2

‎lib/matplotlib/tests/test_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_axes.py
-6Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,9 +1027,6 @@ def test_hexbin_pickable():
10271027
def test_hexbin_log():
10281028
# Issue #1636 (and also test log scaled colorbar)
10291029

1030-
# Remove this line when this test image is regenerated.
1031-
plt.rcParams['pcolormesh.snap'] = False
1032-
10331030
np.random.seed(19680801)
10341031
n = 100000
10351032
x = np.random.standard_normal(n)
@@ -1515,9 +1512,6 @@ def test_pcolormesh_log_scale(fig_test, fig_ref):
15151512

15161513
@image_comparison(['pcolormesh_datetime_axis.png'], style='mpl20')
15171514
def test_pcolormesh_datetime_axis():
1518-
# Remove this line when this test image is regenerated.
1519-
plt.rcParams['pcolormesh.snap'] = False
1520-
15211515
fig = plt.figure()
15221516
fig.subplots_adjust(hspace=0.4, top=0.98, bottom=.15)
15231517
base = datetime.datetime(2013, 1, 1)

‎lib/matplotlib/tests/test_colors.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_colors.py
-6Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -832,9 +832,6 @@ def _mask_tester(norm_instance, vals):
832832

833833
@image_comparison(['levels_and_colors.png'])
834834
def test_cmap_and_norm_from_levels_and_colors():
835-
# Remove this line when this test image is regenerated.
836-
plt.rcParams['pcolormesh.snap'] = False
837-
838835
data = np.linspace(-2, 4, 49).reshape(7, 7)
839836
levels = [-1, 2, 2.5, 3]
840837
colors = ['red', 'green', 'blue', 'yellow', 'black']
@@ -852,9 +849,6 @@ def test_cmap_and_norm_from_levels_and_colors():
852849
@image_comparison(baseline_images=['boundarynorm_and_colorbar'],
853850
extensions=['png'], tol=1.0)
854851
def test_boundarynorm_and_colorbarbase():
855-
# Remove this line when this test image is regenerated.
856-
plt.rcParams['pcolormesh.snap'] = False
857-
858852
# Make a figure and axes with dimensions as desired.
859853
fig = plt.figure()
860854
ax1 = fig.add_axes([0.05, 0.80, 0.9, 0.15])

‎lib/mpl_toolkits/mplot3d/tests/test_axes3d.py

Copy file name to clipboardExpand all lines: lib/mpl_toolkits/mplot3d/tests/test_axes3d.py
-5Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,6 @@ def test_surface3d():
654654

655655
@image_comparison(['surface3d_label_offset_tick_position.png'], style='mpl20')
656656
def test_surface3d_label_offset_tick_position():
657-
plt.rcParams['axes3d.automargin'] = True # Remove when image is regenerated
658657
ax = plt.figure().add_subplot(projection="3d")
659658

660659
x, y = np.mgrid[0:6 * np.pi:0.25, 0:4 * np.pi:0.25]
@@ -764,7 +763,6 @@ def test_text3d():
764763

765764
ax.text(1, 1, 1, "red", color='red')
766765
ax.text2D(0.05, 0.95, "2D Text", transform=ax.transAxes)
767-
plt.rcParams['axes3d.automargin'] = True # Remove when image is regenerated
768766
ax.set_xlim3d(0, 10)
769767
ax.set_ylim3d(0, 10)
770768
ax.set_zlim3d(0, 10)
@@ -1243,7 +1241,6 @@ def test_proj_axes_cube():
12431241
for x, y, t in zip(txs, tys, ts):
12441242
ax.text(x, y, t)
12451243

1246-
plt.rcParams['axes3d.automargin'] = True # Remove when image is regenerated
12471244
ax.set_xlim(-0.2, 0.2)
12481245
ax.set_ylim(-0.2, 0.2)
12491246

@@ -1273,7 +1270,6 @@ def test_proj_axes_cube_ortho():
12731270
for x, y, t in zip(txs, tys, ts):
12741271
ax.text(x, y, t)
12751272

1276-
plt.rcParams['axes3d.automargin'] = True # Remove when image is regenerated
12771273
ax.set_xlim(-200, 200)
12781274
ax.set_ylim(-200, 200)
12791275

@@ -1735,7 +1731,6 @@ def test_errorbar3d():
17351731

17361732
@image_comparison(['stem3d.png'], style='mpl20', tol=0.009)
17371733
def test_stem3d():
1738-
plt.rcParams['axes3d.automargin'] = True # Remove when image is regenerated
17391734
fig, axs = plt.subplots(2, 3, figsize=(8, 6),
17401735
constrained_layout=True,
17411736
subplot_kw={'projection': '3d'})

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.