We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a154afa + 5a336ab commit 359cc43Copy full SHA for 359cc43
sectionproperties/post/post.py
@@ -60,16 +60,15 @@ def plotting_context(
60
61
yield fig, ax
62
63
- ax.set_aspect("equal", anchor="C")
64
ax.set_title(title)
+ plt.tight_layout()
65
+ ax.set_aspect("equal", anchor="C")
66
67
+ # if no axes was supplied, finish the plot and return the figure and axes
68
if ax_supplied:
69
# if an axis was supplied, don't continue with displaying or configuring the plot
70
return
71
- # if no axes was supplied, finish the plot and return the figure and axes
- plt.tight_layout()
72
-
73
if filename:
74
fig.savefig(filename, dpi=fig.dpi)
75
plt.close(fig) # close the figure to free the memory
0 commit comments