plot_trajectory

Function plot_trajectory 

Source
pub fn plot_trajectory(uvt_file: Uvt)
Expand description

Plots the trajectory from a UVT file.

This function generates a bird-eye view of the trajectory recorded in the UVT file and saves it as a PNG image (traj.png) in the current working directory.

§Arguments

  • uvt_file - A uvt::Uvt object containing the trajectory data.

§Example

use uvt;
use uvt_plot;

let my_uvt = uvt::Uvt::read_file("example.uvt").unwrap();
uvt_plot::plot_trajectory(my_uvt);

The resulting plot will be saved as traj.png.