8000 FIX: properly set x/y limits · matplotlib/matplotlib@a2d22f2 · GitHub
[go: up one dir, main page]

Skip to content

Commit a2d22f2

Browse files
committed
FIX: properly set x/y limits
1 parent 672f696 commit a2d22f2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/colorbar.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,7 @@ def _config_axes(self, X, Y):
593593
ax.set_frame_on(False)
594594
ax.set_navigate(False)
595595
xy = self._outline(X, Y)
596+
ax.ignore_existing_data_limits = True
596597
ax.update_datalim(xy)
597598
ax.set_xlim(*ax.dataLim.intervalx)
598599
ax.set_ylim(*ax.dataLim.intervaly)

0 commit comments

Comments
 (0)
0