Skip to content

Commit

Permalink
Fixup x-axis titles and add Wavelength (nm) for future use
Browse files Browse the repository at this point in the history
Signed-off-by: Geoff Hutchison <[email protected]>
  • Loading branch information
ghutchis committed Dec 19, 2024
1 parent 554aef9 commit e37b4a8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions avogadro/qtplugins/spectra/spectradialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,8 @@ void SpectraDialog::updatePlot()
transitions = fromMatrix(m_spectra["Electronic"].col(0));
intensities = fromMatrix(m_spectra["Electronic"].col(1));
windowName = tr("Electronic Spectra");
xTitle = tr("eV");
QString xWave = tr("Wavelength (nm)");
xTitle = tr("Energy (eV)");
yTitle = tr("Intensity");
// save settings
settings.setValue("spectra/electronicXMin", m_ui->xAxisMinimum->value());
Expand All @@ -548,7 +549,7 @@ void SpectraDialog::updatePlot()
else // grab it from the CD data
intensities = fromMatrix(m_spectra["CircularDichroism"].col(1));
windowName = tr("Circular Dichroism Spectra");
xTitle = tr("eV)");
xTitle = tr("Energy (eV)");
yTitle = tr("Intensity");
// save settings
settings.setValue("spectra/CDXMin", m_ui->xAxisMinimum->value());
Expand All @@ -561,7 +562,7 @@ void SpectraDialog::updatePlot()
transitions = fromMatrix(m_spectra["DensityOfStates"].col(0));
intensities = fromMatrix(m_spectra["DensityOfStates"].col(1));
windowName = tr("Density of States");
xTitle = tr("eV");
xTitle = tr("Energy (eV)");
yTitle = tr("Intensity");
// save settings
settings.setValue("spectra/dosXMin", m_ui->xAxisMinimum->value());
Expand Down

0 comments on commit e37b4a8

Please sign in to comment.