macro_rules! plot_residuals {
($fit:expr, { $( $name:ident : $value:expr ),* $(,)? } $( , prefix = $prefix:expr )?) => { ... };
($fit:expr$( , prefix = $prefix:expr )?) => { ... };
}Expand description
Plot the residuals of a CurveFit to a PNG file.
Generates a filename based on the source file, line number, and timestamp.
- Creates the necessary directories if they don’t exist.
- Prints the path of the generated file to stdout.
- If prefix is specified, it is prepended to the filename.
§Examples
ⓘ
plot_residuals!(fit);
plot_residuals!(fit, prefix = "custom");
plot_residuals!(fit, PlotOptions<_> { title: "My Plot", ..Default::default() });
plot_residuals!(fit, PlotOptions<_> { title: "My Plot", ..Default::default() }, prefix = "custom");