Function lupnt::Plot3(const VecX&, const VecX&, const VecX&, std::string_view)

Function Documentation

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

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

Thin autodiff-to-double wrapper around matplot::plot3, used throughout cpp/examples/ to visualize propagated trajectories (e.g. position columns of a MatX6 orbit history) in 3D.

Parameters:
  • x – X coordinates [consistent length units, e.g. km]

  • y – Y coordinates [same units as x]

  • z – Z coordinates [same units as x]

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

Returns:

Handle to the created line, for further styling (->display_name(...), ->line_width(...), etc.)