Skip to content

Commit

Permalink
Fix ref spectrum plotting
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles committed Feb 12, 2024
1 parent 168c5c2 commit 2e4d81a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion artistools/spectra/plotspectra.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,10 @@ def make_spectrum_plot(

seriesdata = pd.DataFrame()

if not Path(specpath).is_dir() and not Path(specpath).exists() and "." in str(specpath):
if (
Path(specpath).is_file()
or Path(at.get_config()["path_artistools_dir"], "data", "refspectra", specpath).is_file()
):
# reference spectrum
if "linewidth" not in plotkwargs:
plotkwargs["linewidth"] = 1.1
Expand Down

0 comments on commit 2e4d81a

Please sign in to comment.