Enum gnuplot::Coordinate [] [src]

pub enum Coordinate {
    Graph(f64),
    Axis(f64),
}

Specifies how to interpret the coordinate passed to a plotting command

Variants

Graph(f64)

Coordinates are done relative to a graph (i.e. an axis set). (0, 0) is the bottom left corner and (1, 1) is the top right corner. You'd use this to place labels and other objects so that they remain in the same place relative to the graph no matter what you have plotted.

Axis(f64)

Coordinates match those on the axes. You'd use this to place labels and other objects relative to regions of interest in the graph (e.g. labeling the peak of a function)

Trait Implementations

impl Clone for Coordinate
[src]

fn clone(&self) -> Coordinate

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for Coordinate
[src]

impl Display for Coordinate
[src]

fn fmt(&self, buf: &mut Formatter) -> Result

Formats the value using the given formatter.