Function lupnt::Plot

Function Documentation

matplot::line_handle lupnt::Plot(const VecX &x, const VecX &y, std::string_view line_spec = "")

Plot a 2D line through the points (x, y) using matplot++.

Thin autodiff-to-double wrapper around matplot::plot; used throughout cpp/examples/ (e.g. time-history plots of states, residuals, errors).

Parameters:
  • x – X coordinates (e.g. time)

  • y – Y coordinates (e.g. state component, residual)

  • line_spec – matplot++ line/marker style string (e.g. "b-", "rx")

Returns:

Handle to the created line, for further styling