diff --git a/sectionproperties/post/post.py b/sectionproperties/post/post.py index b5bae2be..601b9944 100644 --- a/sectionproperties/post/post.py +++ b/sectionproperties/post/post.py @@ -3,7 +3,7 @@ def setup_plot(ax, pause): - """Exectues code required to set up a matplotlib figure. + """Executes code required to set up a matplotlib figure. :param ax: Axes object on which to plot :type ax: :class:`matplotlib.axes.Axes` @@ -14,6 +14,7 @@ def setup_plot(ax, pause): if not pause: plt.ion() + plt.tight_layout() plt.show() else: plt.ioff() @@ -34,6 +35,7 @@ def finish_plot(ax, pause, title=''): ax.set_aspect('equal', anchor='C') if pause: + plt.tight_layout() plt.show() else: plt.draw()