Skip to content

Commit e10954c

Browse files
committed
FIX: properly set x/y limits
1 parent 859e42f commit e10954c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/colorbar.py

+1
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,7 @@ def _config_axes(self, X, Y):
594594
ax.set_frame_on(False)
595595
ax.set_navigate(False)
596596
xy = self._outline(X, Y)
597+
ax.ignore_existing_data_limits = True
597598
ax.update_datalim(xy)
598599
ax.set_xlim(*ax.dataLim.intervalx)
599600
ax.set_ylim(*ax.dataLim.intervaly)

0 commit comments

Comments
 (0)