# 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`(const Curve &other)

    Creates a curve objects as a copy of other.

  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.

  Vec2d `value`(size_t valueIndex) const

    Returns the x- and y-value at index valueIndex.

  Color3f `color`() const

    Returns the curve color.

  void `setColor`(const Color3f &color)

    Sets the curve color.

  Str `title`() const

    Returns the curve title.

  void `setTitle`(const Str &title)

    Sets the curve title.

  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.

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Envision for Desktop in your own language, or choose a sample question below to start a conversation:

What is HOOPS Envision for Desktop?
What are the latest release notes for HOOPS Envision for Desktop?
How do I start evaluating HOOPS Envision for Desktop?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...