Skip to content

Commit

Permalink
Ensure doped plotting style used with Kumagai correction plots
Browse files Browse the repository at this point in the history
  • Loading branch information
kavanase committed Sep 2, 2023
1 parent 85427f9 commit f638e95
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions doped/utils/legacy_pmg/corrections.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ def plot(self, axis, title=None, saved=False):
transparent=True,
)
return None
return plt
return plt


class KumagaiCorrection(DefectCorrection):
Expand Down Expand Up @@ -806,15 +806,15 @@ def plot(self, title=None, saved=False):
plt.ylabel("Potential (V)")
plt.title(f"{title!s} Atomic Site Potential")

if saved:
plt.savefig(
f"{title!s}KumagaiESPavgPlot.pdf",
bbox_inches="tight",
backend=_get_backend("pdf"),
transparent=True,
)
return None
return plt
if saved:
plt.savefig(
f"{title!s}KumagaiESPavgPlot.pdf",
bbox_inches="tight",
backend=_get_backend("pdf"),
transparent=True,
)
return None
return plt


class BandFillingCorrection(DefectCorrection):
Expand Down

0 comments on commit f638e95

Please sign in to comment.