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 5cf5015

Browse filesBrowse files
committed
TST: Remove the callback from axes_grid test
This test puts multiple colorbars into the same cax axes and some state gets kept due to the callbacks immediately updating the cax the first time around.
1 parent b56d4c9 commit 5cf5015
Copy full SHA for 5cf5015

File tree

Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed

‎lib/mpl_toolkits/tests/test_axes_grid.py

Copy file name to clipboardExpand all lines: lib/mpl_toolkits/tests/test_axes_grid.py
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ def test_imagegrid_cbar_mode_edge():
4343

4444
for ax in grid:
4545
ax.cax.cla()
46-
cb = ax.cax.colorbar(ax.images[0])
46+
ax.cax.colorbar(ax.images[0])
47+
# Remove the callback because we are putting colorbars onto
48+
# the same cax
49+
ax.images[0].callbacksSM.disconnect(ax.images[0].colorbar_cid)
50+
4751

4852

4953
def test_imagegrid():

0 commit comments

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