Expand description
§Plot
This module contains the functions for plotting the results of the measurements.
This is done using the time_plot function which this module provides.
The time_plot function takes as inputs:
- A path to save the plot to
- a
Measurementsstruct, which contains the results of the measurements - a
PlotConfigstruct, which contains the configuration for the plot
The PlotConfig struct can be created using the builder pattern, configurable option are:
PlotConfig::with_x_label: Sets the x label for the plot.PlotConfig::with_y_label: Sets the y label for the plot.PlotConfig::with_title: Sets the title for the plot.PlotConfig::with_caption: Sets the caption for the plot.PlotConfig::with_scale: Sets the scale for the plot.
Structs§
- Plot
Config - Configuration for plotting.
Enums§
- Scale
- The scale of the plot.
Functions§
- time_
plot - Plots the data from the
Measurementsusing plotters. The plot is saved to the file specified byfile_name, the file created will be an SVG file.