Skip to content

Commit

Permalink
fmk - version to 4.0.1, bug in displaying target and mean responses i…
Browse files Browse the repository at this point in the history
…n RecordSelectionPlot
  • Loading branch information
fmckenna committed Sep 3, 2024
1 parent 5bfd020 commit 86bd220
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
16 changes: 10 additions & 6 deletions EVENTS/peerNGA/RecordSelectionPlot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ RecordSelectionPlot::RecordSelectionPlot(QWidget *parent) :

this->setMinimumWidth(200);
this->setMinimumHeight(200);

}


Expand All @@ -91,6 +90,8 @@ void RecordSelectionPlot::setMean(QVector<double> periods, QVector<double> sa)
if (addMean == false) {
addMean = true;
spectraChart.addSeries(&meanSeries);
meanSeries.attachAxis(&xAxis);
meanSeries.attachAxis(&yAxis);
}

meanSeries.clear();
Expand All @@ -115,7 +116,9 @@ void RecordSelectionPlot::setMeanPlusSigma(QVector<double> periods, QVector<doub
{
if (addPlus == false) {
addPlus = true;
spectraChart.addSeries(&plusSigmaSeries);
spectraChart.addSeries(&plusSigmaSeries);
plusSigmaSeries.attachAxis(&xAxis);
plusSigmaSeries.attachAxis(&yAxis);
}
plusSigmaSeries.clear();

Expand All @@ -131,6 +134,8 @@ void RecordSelectionPlot::setMeanMinusSigma(QVector<double> periods, QVector<dou
if (addMinus == false) {
addMinus = true;
spectraChart.addSeries(&minusSigmaSeries);
minusSigmaSeries.attachAxis(&xAxis);
minusSigmaSeries.attachAxis(&yAxis);
}
minusSigmaSeries.clear();

Expand All @@ -146,10 +151,9 @@ void RecordSelectionPlot::setTargetSpectrum(QVector<double> periods, QVector<dou

if (addTarget == false) {
addTarget = true;
spectraChart.addSeries(&targetSeries);
/*
spectraChart.addSeries(&plusSigmaSeries);
*/
spectraChart.addSeries(&targetSeries);
targetSeries.attachAxis(&xAxis);
targetSeries.attachAxis(&yAxis);
}
targetSeries.clear();

Expand Down
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ int main(int argc, char *argv[])
QCoreApplication::setApplicationName("EE-UQ");
QCoreApplication::setOrganizationName("SimCenter");
//QCoreApplication::setApplicationVersion("3.6.0");
QCoreApplication::setApplicationVersion("4.0.0");
QCoreApplication::setApplicationVersion("4.0.1");

//Init resources from static libraries (e.g. SimCenterCommonQt or s3hark)
Q_INIT_RESOURCE(images1);
Expand Down

0 comments on commit 86bd220

Please sign in to comment.