Struct plotpy::Scatter[][src]

pub struct Scatter {
    pub marker_alpha: f64,
    pub marker_color: String,
    pub marker_every: i32,
    pub marker_is_void: bool,
    pub marker_line_color: String,
    pub marker_line_style: String,
    pub marker_line_width: f64,
    pub marker_size: f64,
    pub marker_style: String,
    // some fields omitted
}
Expand description

Generates scatter plot given two arrays (x,y)

Examples

use plotpy::*;
let x = &[1.0, 2.0, 3.0, 4.0, 5.0];
let y = &[1.0, 4.0, 9.0, 16.0, 25.0];
let mut plot = Plot::new();
let mut scatter = Scatter::new();
scatter.marker_style = "*".to_string();
scatter.draw(x, y);
plot.add(&scatter);
plot.save("/tmp/plotpy", "example_scatter", "svg");

Fields

marker_alpha: f64

alpha (0, 1]

marker_color: String

color

marker_every: i32

mark-every

marker_is_void: bool

void marker (draw edge only)

marker_line_color: String

edge color

marker_line_style: String

edge style

marker_line_width: f64

edge width

marker_size: f64

size

marker_style: String

type, e.g., “o”, “+”

Implementations

Creates new Scatter object

Draw scatter graph

Arguments

  • x - abscissa array
  • y - ordinate array

Trait Implementations

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

Performs the conversion.

Performs the conversion.

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.