mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
statistics: clip regression line
A steep regression line would shoot out of the chart. Therefore, clip to the y = minY and y = maxY lines. QtGraphicsScene has its own clipping routines, but they are very general, so let's do this trivial case by hand. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
9beec46e22
commit
bea289e314
2 changed files with 21 additions and 3 deletions
|
|
@ -110,7 +110,7 @@ private:
|
|||
LineMarker(QPointF from, QPointF to, QPen pen, QtCharts::QAbstractSeries *series);
|
||||
};
|
||||
|
||||
void addLinearRegression(double a, double b, double minX, double maxX, QtCharts::QAbstractSeries *series);
|
||||
void addLinearRegression(double a, double b, double minX, double maxX, double minY, double maxY, QtCharts::QAbstractSeries *series);
|
||||
void addHistogramMarker(double pos, double low, double high, const QPen &pen, bool isHorizontal, QtCharts::QAbstractSeries *series);
|
||||
|
||||
StatsState state;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue