From ac5aa269997874fe7df88c365fac0df49915f365 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Fri, 17 Apr 2020 12:43:33 +0200 Subject: [PATCH] Fix misindented block in example. --- examples/pyplots/auto_subplots_adjust.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/examples/pyplots/auto_subplots_adjust.py b/examples/pyplots/auto_subplots_adjust.py index d0db09362155..40c88a8e07cc 100644 --- a/examples/pyplots/auto_subplots_adjust.py +++ b/examples/pyplots/auto_subplots_adjust.py @@ -28,14 +28,12 @@ def on_draw(event): # want the inverse of that bboxi = bbox.transformed(fig.transFigure.inverted()) bboxes.append(bboxi) - - # this is the bbox that bounds all the bboxes, again in relative - # figure coords - bbox = mtransforms.Bbox.union(bboxes) - if fig.subplotpars.left < bbox.width: - # we need to move it over - fig.subplots_adjust(left=1.1*bbox.width) # pad a little - fig.canvas.draw() + # the bbox that bounds all the bboxes, again in relative figure coords + bbox = mtransforms.Bbox.union(bboxes) + if fig.subplotpars.left < bbox.width: + # we need to move it over + fig.subplots_adjust(left=1.1*bbox.width) # pad a little + fig.canvas.draw() fig.canvas.mpl_connect('draw_event', on_draw)