Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6ec5b75

Browse files
committed
removed text from test image and test
1 parent 099e4a3 commit 6ec5b75

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/mpl_toolkits/axes_grid1/tests/test_axes_grid1.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ def test_removal():
718718
fig.canvas.draw()
719719

720720

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

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

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

736737
axins = zoomed_inset_axes(ax, zoom=2, loc="upper left")
737738
axins.set(xticks=[], yticks=[])
739+
738740
im = axins.imshow(Z, extent=extent, origin="lower")
739741

740742
# colorbar
@@ -748,4 +750,4 @@ def test_anchored_locator_base_call():
748750
borderpad=0,
749751
)
750752

751-
fig.colorbar(im, cax=cax)
753+
fig.colorbar(im, cax=cax, ticks=[])

0 commit comments

Comments
 (0)