8000 Fix: add get_subplotspec · matplotlib/matplotlib@ffb90ff · GitHub
[go: up one dir, main page]

Skip to content

Commit ffb90ff

Browse files
committed
Fix: add get_subplotspec
1 parent 561d771 commit ffb90ff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/matplotlib/colorbar.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,10 @@ def __call__(self, ax, renderer):
286286
offset = offset * pos.width
287287
pos = pos.shrunk(shrink, 1).translated(offset, 0)
288288
return pos
289+
290+
def get_subplotspec(self):
291+
# make tight_layout happy..
292+
return self._cbar.ax.get_subplotspec()
289293

290294

291295
class Colorbar:

0 commit comments

Comments
 (0)
0