Skip to content

Commit

Permalink
Update legend in eFNV plots as discussed with @adair-nicolson
Browse files Browse the repository at this point in the history
  • Loading branch information
kavanase committed Nov 2, 2023
1 parent 377e725 commit bbcfee8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doped/corrections.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
from monty.json import MontyDecoder
from pymatgen.analysis.defects.corrections import freysoldt
from pymatgen.analysis.defects.utils import CorrectionResult
from pymatgen.core.periodic_table import Element
from pymatgen.io.vasp.outputs import Locpot, Outcar
from shakenbreak.plotting import _install_custom_font

Expand Down Expand Up @@ -472,6 +473,11 @@ def get_kumagai_correction(
)
for label in labels
]
dummy_h = Element("H") # dummy element to check if valid symbol
labels = [
label + r" ($V_{defect} - V_{bulk}$)" if dummy_h.is_valid_symbol(label) else label
for label in labels
]

# add entry for dashed red line:
handles += [Line2D([0], [0], **spp._mpl_defaults.hline)]
Expand Down
Binary file modified tests/data/remote_baseline_plots/F_O_+1_eFNV_plot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/data/remote_baseline_plots/F_O_+1_eFNV_plot_custom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/data/remote_baseline_plots/Te_i_+2_eFNV_plot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bbcfee8

Please sign in to comment.