Calls Python and saves the python script and figure The figure format is determined by the file extension (`.svg`, `.png`, `.pdf`, etc.). # Input `figure_path` -- may be a String, &str, or Path # Notes 1. You may want to call [Plot::set_show_errors()] to enable the display of Python errors (if any) 2. The intermediate Python script is saved alongside the figure with a `.py` extension
(&self, figure_path: &S)
| 231 | /// display of Python errors (if any) |
| 232 | /// 2. The intermediate Python script is saved alongside the figure with a `.py` extension |
| 233 | pub fn save<S>(&self, figure_path: &S) -> Result<(), StrError> |
| 234 | where |
| 235 | S: AsRef<OsStr> + ?Sized, |
| 236 | { |
| 237 | self.run(figure_path, false) |
| 238 | } |
| 239 | |
| 240 | /// Calls Python, saves the python script and figure, and shows the plot window |
| 241 | /// |