Struct graplot::Scatter

source ·
pub struct Scatter {
    pub plot: Plot,
}

Fields§

§plot: Plot

Implementations§

Examples found in repository?
examples/scatter.rs (line 7)
3
4
5
6
7
8
9
10
11
12
13
14
15
fn main() {
    let x = [5.,7.,8.,7.,2.,17.,2.,9.,4.,11.,12.,9.,6.];
    let y = [99.,86.,87.,88.,111.,86.,70.,87.,94.,78.,77.,85.,86.];

    let mut scat = Scatter::new((x, y));
    scat.set_desc(Desc {
        spacing_y: 60.,
        spacing_x: 60.,
        ..Default::default()
    });
    scat.add(([2., 10.5], [50., 114.], "r-"));
    scat.show();
}
Examples found in repository?
examples/scatter.rs (lines 8-12)
3
4
5
6
7
8
9
10
11
12
13
14
15
fn main() {
    let x = [5.,7.,8.,7.,2.,17.,2.,9.,4.,11.,12.,9.,6.];
    let y = [99.,86.,87.,88.,111.,86.,70.,87.,94.,78.,77.,85.,86.];

    let mut scat = Scatter::new((x, y));
    scat.set_desc(Desc {
        spacing_y: 60.,
        spacing_x: 60.,
        ..Default::default()
    });
    scat.add(([2., 10.5], [50., 114.], "r-"));
    scat.show();
}
Examples found in repository?
examples/scatter.rs (line 13)
3
4
5
6
7
8
9
10
11
12
13
14
15
fn main() {
    let x = [5.,7.,8.,7.,2.,17.,2.,9.,4.,11.,12.,9.,6.];
    let y = [99.,86.,87.,88.,111.,86.,70.,87.,94.,78.,77.,85.,86.];

    let mut scat = Scatter::new((x, y));
    scat.set_desc(Desc {
        spacing_y: 60.,
        spacing_x: 60.,
        ..Default::default()
    });
    scat.add(([2., 10.5], [50., 114.], "r-"));
    scat.show();
}
Examples found in repository?
examples/scatter.rs (line 14)
3
4
5
6
7
8
9
10
11
12
13
14
15
fn main() {
    let x = [5.,7.,8.,7.,2.,17.,2.,9.,4.,11.,12.,9.,6.];
    let y = [99.,86.,87.,88.,111.,86.,70.,87.,94.,78.,77.,85.,86.];

    let mut scat = Scatter::new((x, y));
    scat.set_desc(Desc {
        spacing_y: 60.,
        spacing_x: 60.,
        ..Default::default()
    });
    scat.add(([2., 10.5], [50., 114.], "r-"));
    scat.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.