Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Remove non-needed remove_text=False.#22855

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
oscargus merged 1 commit intomatplotlib:mainfromanntzer:urt
Apr 16, 2022
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletionslib/matplotlib/tests/test_axes.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1182,8 +1182,7 @@ def test_pcolormesh_alpha():
ax4.pcolormesh(Qx, Qy, Z, cmap=cmap, shading='gouraud', zorder=1)


@image_comparison(['pcolormesh_datetime_axis.png'],
remove_text=False, style='mpl20')
@image_comparison(['pcolormesh_datetime_axis.png'], style='mpl20')
def test_pcolormesh_datetime_axis():
# Remove this line when this test image is regenerated.
plt.rcParams['pcolormesh.snap'] = False
Expand DownExpand Up@@ -1211,8 +1210,7 @@ def test_pcolormesh_datetime_axis():
label.set_rotation(30)


@image_comparison(['pcolor_datetime_axis.png'],
remove_text=False, style='mpl20')
@image_comparison(['pcolor_datetime_axis.png'], style='mpl20')
def test_pcolor_datetime_axis():
fig = plt.figure()
fig.subplots_adjust(hspace=0.4, top=0.98, bottom=.15)
Expand Down
4 changes: 2 additions & 2 deletionslib/matplotlib/tests/test_bbox_tight.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -43,7 +43,7 @@ def test_bbox_inches_tight():


@image_comparison(['bbox_inches_tight_suptile_legend'],
remove_text=False,savefig_kwarg={'bbox_inches': 'tight'})
savefig_kwarg={'bbox_inches': 'tight'})
def test_bbox_inches_tight_suptile_legend():
plt.plot(np.arange(10), label='a straight line')
plt.legend(bbox_to_anchor=(0.9, 1), loc='upper left')
Expand All@@ -62,7 +62,7 @@ def y_formatter(y, pos):


@image_comparison(['bbox_inches_tight_suptile_non_default.png'],
remove_text=False,savefig_kwarg={'bbox_inches': 'tight'},
savefig_kwarg={'bbox_inches': 'tight'},
tol=0.1) # large tolerance because only testing clipping.
def test_bbox_inches_tight_suptitle_non_default():
fig, ax = plt.subplots()
Expand Down
3 changes: 1 addition & 2 deletionslib/matplotlib/tests/test_colorbar.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -948,8 +948,7 @@ def test_negative_boundarynorm():
np.testing.assert_allclose(cb.ax.get_yticks(), clevs)


@image_comparison(['nonorm_colorbars.svg'], remove_text=False,
style='mpl20')
@image_comparison(['nonorm_colorbars.svg'], style='mpl20')
def test_nonorm():
plt.rcParams['svg.fonttype'] = 'none'
data = [1, 2, 3, 4, 5]
Expand Down
6 changes: 2 additions & 4 deletionslib/matplotlib/tests/test_constrainedlayout.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -465,8 +465,7 @@ def test_colorbar_align():
cbs[3].ax.get_position().y0)


@image_comparison(['test_colorbars_no_overlapV.png'],
remove_text=False, style='mpl20')
@image_comparison(['test_colorbars_no_overlapV.png'], style='mpl20')
def test_colorbars_no_overlapV():
fig = plt.figure(figsize=(2, 4), layout="constrained")
axs = fig.subplots(2, 1, sharex=True, sharey=True)
Expand All@@ -478,8 +477,7 @@ def test_colorbars_no_overlapV():
fig.suptitle("foo")


@image_comparison(['test_colorbars_no_overlapH.png'],
remove_text=False, style='mpl20')
@image_comparison(['test_colorbars_no_overlapH.png'], style='mpl20')
def test_colorbars_no_overlapH():
fig = plt.figure(figsize=(4, 2), layout="constrained")
fig.suptitle("foo")
Expand Down
3 changes: 1 addition & 2 deletionslib/matplotlib/tests/test_contour.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -153,8 +153,7 @@ def test_given_colors_levels_and_extends():
plt.colorbar(c, ax=ax)


@image_comparison(['contour_datetime_axis.png'],
remove_text=False, style='mpl20')
@image_comparison(['contour_datetime_axis.png'], style='mpl20')
def test_contour_datetime_axis():
fig = plt.figure()
fig.subplots_adjust(hspace=0.4, top=0.98, bottom=.15)
Expand Down
9 changes: 3 additions & 6 deletionslib/matplotlib/tests/test_figure.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1110,8 +1110,7 @@ def test_reused_gridspec():


@image_comparison(['test_subfigure.png'], style='mpl20',
savefig_kwarg={'facecolor': 'teal'},
remove_text=False)
savefig_kwarg={'facecolor': 'teal'})
def test_subfigure():
np.random.seed(19680801)
fig = plt.figure(layout='constrained')
Expand DownExpand Up@@ -1143,8 +1142,7 @@ def test_subfigure_tightbbox():


@image_comparison(['test_subfigure_ss.png'], style='mpl20',
savefig_kwarg={'facecolor': 'teal'},
remove_text=False)
savefig_kwarg={'facecolor': 'teal'})
def test_subfigure_ss():
# test assigning the subfigure via subplotspec
np.random.seed(19680801)
Expand All@@ -1167,8 +1165,7 @@ def test_subfigure_ss():


@image_comparison(['test_subfigure_double.png'], style='mpl20',
savefig_kwarg={'facecolor': 'teal'},
remove_text=False)
savefig_kwarg={'facecolor': 'teal'})
def test_subfigure_double():
# test assigning the subfigure via subplotspec
np.random.seed(19680801)
Expand Down
2 changes: 1 addition & 1 deletionlib/matplotlib/tests/test_subplots.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -144,7 +144,7 @@ def test_exceptions():
plt.subplots(2, 2, sharey='blah')


@image_comparison(['subplots_offset_text'], remove_text=False)
@image_comparison(['subplots_offset_text'])
def test_subplots_offsettext():
x = np.arange(0, 1e10, 1e9)
y = np.arange(0, 100, 10)+1e4
Expand Down
2 changes: 1 addition & 1 deletionlib/matplotlib/tests/test_units.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -78,7 +78,7 @@ def default_units(value, axis):

# Tests that the conversion machinery works properly for classes that
# work as a facade over numpy arrays (like pint)
@image_comparison(['plot_pint.png'],remove_text=False,style='mpl20',
@image_comparison(['plot_pint.png'], style='mpl20',
tol=0 if platform.machine() == 'x86_64' else 0.01)
def test_numpy_facade(quantity_converter):
# use former defaults to match existing baseline image
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp