Plot3D

Struct Plot3D 

Source
pub struct Plot3D {
    pub xs: Matrix,
    pub ys: Matrix,
    pub zs: Matrix,
    pub line_desc: Vec<LineDesc>,
    pub desc: Desc,
}

Fields§

§xs: Matrix§ys: Matrix§zs: Matrix§line_desc: Vec<LineDesc>§desc: Desc

Implementations§

Source§

impl Plot3D

Source

pub fn new<A: Plot3DArg>(args: A) -> Plot3D

Examples found in repository?
examples/3d.rs (line 9)
3fn main() {
4    let xs = [0.,1.,2.,3.,4.,5.,6.];
5    let ys = [0.,1.,4.,9.,16.,25.,36.];
6    let zs = [0.,1.,4.,9.,16.,25.,36.];
7    
8    // move with: W, A, S, D
9    let plot = Plot3D::new((xs, ys, zs, "r-o"));
10    plot.show();
11}
Source

pub fn add<A: Plot3DArg>(&mut self, args: A)

Source

pub fn show(self)

Examples found in repository?
examples/3d.rs (line 10)
3fn main() {
4    let xs = [0.,1.,2.,3.,4.,5.,6.];
5    let ys = [0.,1.,4.,9.,16.,25.,36.];
6    let zs = [0.,1.,4.,9.,16.,25.,36.];
7    
8    // move with: W, A, S, D
9    let plot = Plot3D::new((xs, ys, zs, "r-o"));
10    plot.show();
11}

Auto Trait Implementations§

§

impl Freeze for Plot3D

§

impl RefUnwindSafe for Plot3D

§

impl Send for Plot3D

§

impl Sync for Plot3D

§

impl Unpin for Plot3D

§

impl UnwindSafe for Plot3D

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

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>,

Source§

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.