Skip to content

Commit 20c880a

Browse files
committed
Tight layout
1 parent 9d74737 commit 20c880a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sectionproperties/post/post.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44

55
def setup_plot(ax, pause):
6-
"""Exectues code required to set up a matplotlib figure.
6+
"""Executes code required to set up a matplotlib figure.
77
88
:param ax: Axes object on which to plot
99
:type ax: :class:`matplotlib.axes.Axes`
@@ -14,6 +14,7 @@ def setup_plot(ax, pause):
1414

1515
if not pause:
1616
plt.ion()
17+
plt.tight_layout()
1718
plt.show()
1819
else:
1920
plt.ioff()
@@ -34,6 +35,7 @@ def finish_plot(ax, pause, title=''):
3435
ax.set_aspect('equal', anchor='C')
3536

3637
if pause:
38+
plt.tight_layout()
3739
plt.show()
3840
else:
3941
plt.draw()

0 commit comments

Comments
 (0)