Skip to content

Commit

Permalink
add plt.show to suppress line about the label
Browse files Browse the repository at this point in the history
  • Loading branch information
HelgeGehring committed May 22, 2024
1 parent 62f93f4 commit 8483e68
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/electronics/examples/capacitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ def W(w):
plt.ylabel(r"Capacitance per unit length / $\epsilon_0$ / a.u.")

plt.legend(title="Dielectric")
plt.show()

# %%
colors = ["tab:blue", "tab:orange", "tab:green"]
Expand All @@ -275,6 +276,7 @@ def W(w):
plt.ylabel(r"Relative error in capacitance per unit length / $\epsilon_0$ / a.u.")

plt.legend(title="Dielectric")
plt.show()


# %% [markdown]
Expand Down

0 comments on commit 8483e68

Please sign in to comment.