Debug Plotter
This crate provides a convenient macro to quickly plot variables.
Example
In this example, we quickly want to plot the variables a
, b
, and c
.
Optionally, we can name the plot. Plots are saved as a PNG image in the
plots
directory that is created in the working directory.
The example above generates a plot named "My Plot" and saves it to 'plots/My_Plot.png`.
Debug and Release Mode
Variables are only plotted if your code is run in debug mode.
In release mode, plot!
macros are ignored.
If you want to avoid compiling the dependencies for this crate in release mode, add --no-default-features
.