Struct peroxide::util::plot::Plot2D

source ·
pub struct Plot2D { /* private fields */ }

Implementations§

source§

impl Plot2D

source

pub fn new() -> Self

Trait Implementations§

source§

impl Debug for Plot2D

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Plot for Plot2D

source§

fn set_domain(&mut self, x: Vec<f64>) -> &mut Self

source§

fn insert_image(&mut self, y: Vec<f64>) -> &mut Self

source§

fn insert_pair(&mut self, xy: (Vec<f64>, Vec<f64>)) -> &mut Self

source§

fn set_title(&mut self, title: &str) -> &mut Self

source§

fn set_xlabel(&mut self, xlabel: &str) -> &mut Self

source§

fn set_ylabel(&mut self, ylabel: &str) -> &mut Self

source§

fn set_zlabel(&mut self, _zlabel: &str) -> &mut Self

source§

fn set_xscale(&mut self, xscale: PlotScale) -> &mut Self

source§

fn set_yscale(&mut self, yscale: PlotScale) -> &mut Self

source§

fn set_xlim(&mut self, xlim: (f64, f64)) -> &mut Self

source§

fn set_ylim(&mut self, ylim: (f64, f64)) -> &mut Self

source§

fn set_legend(&mut self, legends: Vec<&str>) -> &mut Self

source§

fn set_path(&mut self, path: &str) -> &mut Self

source§

fn set_fig_size(&mut self, fig_size: (usize, usize)) -> &mut Self

source§

fn set_dpi(&mut self, dpi: usize) -> &mut Self

source§

fn grid(&mut self, grid: Grid) -> &mut Self

source§

fn set_marker(&mut self, styles: Vec<(usize, Markers)>) -> &mut Self

source§

fn set_style(&mut self, style: PlotStyle) -> &mut Self

source§

fn tight_layout(&mut self) -> &mut Self

source§

fn set_line_style(&mut self, style: Vec<(usize, LineStyle)>) -> &mut Self

source§

fn set_color(&mut self, color: Vec<(usize, &str)>) -> &mut Self

source§

fn set_alpha(&mut self, alpha: Vec<(usize, f64)>) -> &mut Self

source§

fn set_plot_type(&mut self, plot_type: Vec<(usize, PlotType)>) -> &mut Self

source§

fn savefig(&self) -> PyResult<()>

Auto Trait Implementations§

§

impl Freeze for Plot2D

§

impl RefUnwindSafe for Plot2D

§

impl Send for Plot2D

§

impl Sync for Plot2D

§

impl Unpin for Plot2D

§

impl UnwindSafe for Plot2D

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> Ungil for T
where T: Send,