MCPcopy Create free account
hub / github.com/cpmech/plotpy / show

Method show

src/plot.rs:251–256  ·  view source on GitHub ↗

Calls Python, saves the python script and figure, and shows the plot window # 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. This function will also save a figure as [Plot::save()] does

(&self, figure_path: &S)

Source from the content-addressed store, hash-verified

249 /// display of Python errors (if any)
250 /// 2. This function will also save a figure as [Plot::save()] does
251 pub fn show<S>(&self, figure_path: &S) -> Result<(), StrError>
252 where
253 S: AsRef<OsStr> + ?Sized,
254 {
255 self.run(figure_path, true)
256 }
257
258 /// Calls Python, saves the python script and figure, and shows the result in a Jupyter notebook
259 ///

Callers

nothing calls this directly

Calls 1

runMethod · 0.80

Tested by

no test coverage detected