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 0efbd3a

Browse filesBrowse files
committed
FIX: properly set x/y limits
1 parent 859e42f commit 0efbd3a
Copy full SHA for 0efbd3a

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+2
-2
lines changed

‎lib/matplotlib/colorbar.py

Copy file name to clipboardExpand all lines: lib/matplotlib/colorbar.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,8 +595,8 @@ def _config_axes(self, X, Y):
595595
ax.set_navigate(False)
596596
xy = self._outline(X, Y)
597597
ax.update_datalim(xy)
598-
ax.set_xlim(*ax.dataLim.intervalx)
599-
ax.set_ylim(*ax.dataLim.intervaly)
598+
ax.set_xlim(np.min(X), np.max(X))
599+
ax.set_ylim(np.min(Y), np.max(Y))
600600
if self.outline is not None:
601601
self.outline.remove()
602602
self.outline = mpatches.Polygon(

0 commit comments

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