Skip to content

Commit

Permalink
Merge commit 'a7605b59553e866966ec3a273d23b45bc2d3a061'
Browse files Browse the repository at this point in the history
  • Loading branch information
ftomei committed Aug 1, 2024
2 parents bcd65f3 + a7605b5 commit acb6af4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions agrolib/proxyWidget/localProxyWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ Crit3DLocalProxyWidget::Crit3DLocalProxyWidget(double x, double y, std::vector<s
modelLR.setText("Model lapse rate");
stationWeights.setText("See weight of stations");

//temporaneamente disattivati
detrended.setVisible(false);
climatologicalLR.setVisible(false);
climatologicalLR.setEnabled(false);

QLabel *r2Label = new QLabel(tr("R2"));
QLabel *lapseRateLabel = new QLabel(tr("Lapse rate"));
Expand Down Expand Up @@ -375,7 +379,7 @@ void Crit3DLocalProxyWidget::plot()
point.setY(varValue);
QString text = "id: " + QString::fromStdString(meteoPoints[subsetInterpolationPoints[i].index].id) + "\n"
+ "name: " + QString::fromStdString(meteoPoints[subsetInterpolationPoints[i].index].name) + "\n"
+ "weight: " + QString::number(subsetInterpolationPoints[i].regressionWeight);
+ "weight: " + QString::number(subsetInterpolationPoints[i].regressionWeight, 'f', 5);
if (subsetInterpolationPoints[i].isMarked)
{
pointListMarked.append(point);
Expand Down Expand Up @@ -477,7 +481,7 @@ void Crit3DLocalProxyWidget::plot()
scenePos.setX(chartRect.left() + xRatio * chartRect.width());
scenePos.setY(chartRect.bottom() - yRatio * chartRect.height());

QGraphicsTextItem* weightLabel = new QGraphicsTextItem(QString::number(subsetInterpolationPoints[i].regressionWeight));
QGraphicsTextItem* weightLabel = new QGraphicsTextItem(QString::number(subsetInterpolationPoints[i].regressionWeight, 'f', 3));
weightLabel->setPos(scenePos);
chartView->scene()->addItem(weightLabel);
weightLabels.push_back(weightLabel);
Expand Down

0 comments on commit acb6af4

Please sign in to comment.