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 74f0f0a

Browse filesBrowse files
dstansbyMeeseeksDev[bot]
authored and
MeeseeksDev[bot]
committed
Backport PR #14069: Don't try to use the colorbar formatter to format RGBA data.
1 parent af7f6b5 commit 74f0f0a
Copy full SHA for 74f0f0a

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+1
-1
lines changed

‎lib/matplotlib/image.py

Copy file name to clipboardExpand all lines: lib/matplotlib/image.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ def get_cursor_data(self, event):
933933
return arr[i, j]
934934

935935
def format_cursor_data(self, data):
936-
if self.colorbar:
936+
if np.ndim(data) == 0 and self.colorbar:
937937
return (
938938
"["
939939
+ cbook.strip_math(

0 commit comments

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