We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent9b16079 commitdaa36a2Copy full SHA for daa36a2
lib/matplotlib/_constrained_layout.py
@@ -740,13 +740,13 @@ def reposition_colorbar(layoutgrids, cbax, renderer, *, offset=None, compress=Fa
740
actual_pos_fig=actual_pos.transformed(fig.transSubfigure-fig.transFigure)
741
742
iflocationin ('left','right'):
743
-# For vertical colorbars, use the actual parent bbox height
+# For vertical colorbars, use the actual parent bbox height
744
# for colorbar sizing
745
# Keep the pb x-coordinates but use actual y-coordinates
746
pb=Bbox.from_extents(pb.x0,actual_pos_fig.y0,
747
pb.x1,actual_pos_fig.y1)
748
eliflocationin ('top','bottom'):
749
-# For horizontal colorbars, use the actual parent bbox width
+# For horizontal colorbars, use the actual parent bbox width
750
751
# Keep the pb y-coordinates but use actual x-coordinates
752
pb=Bbox.from_extents(actual_pos_fig.x0,pb.y0,