Enum gnuplot::Coordinate
source · pub enum Coordinate {
Graph(f64),
Axis(f64),
Axis2(f64),
}
Expand description
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)
Axis2(f64)
Coordinates match those on the secondary 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§
source§impl Clone for Coordinate
impl Clone for Coordinate
source§fn clone(&self) -> Coordinate
fn clone(&self) -> Coordinate
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Display for Coordinate
impl Display for Coordinate
impl Copy for Coordinate
Auto Trait Implementations§
impl Freeze for Coordinate
impl RefUnwindSafe for Coordinate
impl Send for Coordinate
impl Sync for Coordinate
impl Unpin for Coordinate
impl UnwindSafe for Coordinate
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more