Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit00b4074

Browse files
dstansbymeeseeksmachine
authored andcommitted
Backport PR#17167: Fix misindented block in example.
1 parent4828bcb commit00b4074

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

‎examples/pyplots/auto_subplots_adjust.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,12 @@ def on_draw(event):
2828
# want the inverse of that
2929
bboxi=bbox.inverse_transformed(fig.transFigure)
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-
iffig.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+
iffig.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

4038
fig.canvas.mpl_connect('draw_event',on_draw)
4139

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp