cee::plt::Curve
-
class Curve
A 2D data series for use in an OverlayPlot.
A Curve consists of a series of 2D data (x- and y-value pairs), a name and a color. An OverlayPlot contains one or more curve objects.
Public Functions
-
Curve &operator=(const Curve &other)
Assigns other to this curve and returns a reference to this curve.
-
size_t valueCount() const
Returns the number of x- and y-value pairs.
-
void setValues(const std::vector<double> &xValues, const std::vector<double> &yValues)
Sets x- and y-values.
Call AxisSettings::forceRangeUpdate() to recalculate the axis ranges.
-
std::vector<double> xValues() const
Returns all x-values.
-
std::vector<double> yValues() const
Returns all y-values.
-
double xValuesMinimum() const
Returns the minimum x-value.
-
double xValuesMaximum() const
Returns the maximum x-value.
-
double yValuesMinimum() const
Returns the minimum y-value.
-
double yValuesMaximum() const
Returns the maximum y-value.
-
Curve &operator=(const Curve &other)