Struct graplot::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§

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

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.