Skip to content

Commit

Permalink
Merge pull request #1874 from ghutchis/improve-spectra-uv-nmr
Browse files Browse the repository at this point in the history
Improve spectra plots, including UV, CD and NMR
  • Loading branch information
ghutchis authored Dec 20, 2024
2 parents e4825cc + b89a732 commit 47545da
Show file tree
Hide file tree
Showing 5 changed files with 523 additions and 206 deletions.
4 changes: 4 additions & 0 deletions avogadro/qtplugins/spectra/spectra.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ void Spectra::openDialog()
}

gatherSpectra();
// update the elements
auto elements = m_molecule->atomicNumbers();
std::vector<unsigned char> atomicNumbers(elements.begin(), elements.end());
m_dialog->setElements(atomicNumbers);
m_dialog->show();
}

Expand Down
Loading

0 comments on commit 47545da

Please sign in to comment.