Skip to content

Commit

Permalink
removed text from test image and test
Browse files Browse the repository at this point in the history
  • Loading branch information
matt256 committed Dec 22, 2022
1 parent 099e4a3 commit 6ec5b75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions lib/mpl_toolkits/axes_grid1/tests/test_axes_grid1.py
Expand Up @@ -718,7 +718,7 @@ def test_removal():
fig.canvas.draw()


@image_comparison(['anchored_locator_base_call.png'], style="mpl20", remove_text=True)
@image_comparison(['anchored_locator_base_call.png'], style="mpl20")
def test_anchored_locator_base_call():
fig = plt.figure(figsize=(3, 3))
fig1, fig2 = fig.subfigures(
Expand All @@ -727,6 +727,7 @@ def test_anchored_locator_base_call():

ax = fig1.subplots()
ax.set(aspect=1, xlim=(-15, 15), ylim=(-20, 5))
ax.set(xticks=[], yticks=[])

Z = cbook.get_sample_data(
"axes_grid/bivariate_normal.npy", np_load=True
Expand All @@ -735,6 +736,7 @@ def test_anchored_locator_base_call():

axins = zoomed_inset_axes(ax, zoom=2, loc="upper left")
axins.set(xticks=[], yticks=[])

im = axins.imshow(Z, extent=extent, origin="lower")

# colorbar
Expand All @@ -748,4 +750,4 @@ def test_anchored_locator_base_call():
borderpad=0,
)

fig.colorbar(im, cax=cax)
fig.colorbar(im, cax=cax, ticks=[])

0 comments on commit 6ec5b75

Please sign in to comment.