File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -28,14 +28,12 @@ def on_draw(event):
2828 # want the inverse of that
2929 bboxi = bbox .transformed (fig .transFigure .inverted ())
3030 bboxes .append (bboxi )
31-
32- # this is the bbox that bounds all the bboxes, again in relative
33- # figure coords
34- bbox = mtransforms .Bbox .union (bboxes )
35- if fig .subplotpars .left < bbox .width :
36- # we need to move it over
37- fig .subplots_adjust (left = 1.1 * bbox .width ) # pad a little
38- fig .canvas .draw ()
31+ # the bbox that bounds all the bboxes, again in relative figure coords
32+ bbox = mtransforms .Bbox .union (bboxes )
33+ if fig .subplotpars .left < bbox .width :
34+ # we need to move it over
35+ fig .subplots_adjust (left = 1.1 * bbox .width ) # pad a little
36+ fig .canvas .draw ()
3937
4038fig .canvas .mpl_connect ('draw_event' , on_draw )
4139
You can’t perform that action at this time.
0 commit comments