pub struct CoordCartesian { /* private fields */ }Expand description
Standard Cartesian coordinate system, with optional zoom limits.
Unlike xlim()/ylim() on scales, zoom limits do NOT filter data —
they only clip the viewport. Data outside the limits is still computed
by stats and positions, just not visible.
Implementations§
Source§impl CoordCartesian
impl CoordCartesian
Trait Implementations§
Source§impl Coord for CoordCartesian
impl Coord for CoordCartesian
Source§fn transform(&self, point: (f64, f64), plot_area: &Rect) -> (f64, f64)
fn transform(&self, point: (f64, f64), plot_area: &Rect) -> (f64, f64)
Transform normalized (0..1, 0..1) coordinates to pixel coordinates.
Source§fn zoom_x(&self) -> Option<(f64, f64)>
fn zoom_x(&self) -> Option<(f64, f64)>
Zoom limits for x-axis (data coordinates). Clips viewport without filtering data.
Source§fn zoom_y(&self) -> Option<(f64, f64)>
fn zoom_y(&self) -> Option<(f64, f64)>
Zoom limits for y-axis (data coordinates). Clips viewport without filtering data.
Source§fn is_flipped(&self) -> bool
fn is_flipped(&self) -> bool
Whether this coordinate system flips X and Y.
Auto Trait Implementations§
impl Freeze for CoordCartesian
impl RefUnwindSafe for CoordCartesian
impl Send for CoordCartesian
impl Sync for CoordCartesian
impl Unpin for CoordCartesian
impl UnsafeUnpin for CoordCartesian
impl UnwindSafe for CoordCartesian
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more