[−][src]Trait plotters::coord::Ranged
The trait that indicates we have a ordered and ranged value Which is used to describe the axis
Associated Types
type ValueType
The type of this value
Required methods
fn map(&self, value: &Self::ValueType, limit: (i32, i32)) -> i32
This function maps the value to i32, which is the drawing coordinate
fn key_points(&self, max_points: usize) -> Vec<Self::ValueType>
This function gives the key points that we can draw a grid based on this
fn range(&self) -> Range<Self::ValueType>
Get the range of this value
Provided methods
fn axis_pixel_range(&self, limit: (i32, i32)) -> Range<i32>
This function provides the on-axis part of its range
Implementors
impl Ranged for RangedCoordf32[src]
type ValueType = f32
fn map(&self, v: &f32, limit: (i32, i32)) -> i32[src]
fn key_points(&self, max_points: usize) -> Vec<f32>[src]
fn range(&self) -> Range<f32>[src]
impl Ranged for RangedCoordf64[src]
type ValueType = f64
fn map(&self, v: &f64, limit: (i32, i32)) -> i32[src]
fn key_points(&self, max_points: usize) -> Vec<f64>[src]
fn range(&self) -> Range<f64>[src]
impl Ranged for RangedCoordi128[src]
type ValueType = i128
fn map(&self, v: &i128, limit: (i32, i32)) -> i32[src]
fn key_points(&self, max_points: usize) -> Vec<i128>[src]
fn range(&self) -> Range<i128>[src]
impl Ranged for RangedCoordi32[src]
type ValueType = i32
fn map(&self, v: &i32, limit: (i32, i32)) -> i32[src]
fn key_points(&self, max_points: usize) -> Vec<i32>[src]
fn range(&self) -> Range<i32>[src]
impl Ranged for RangedCoordi64[src]
type ValueType = i64
fn map(&self, v: &i64, limit: (i32, i32)) -> i32[src]
fn key_points(&self, max_points: usize) -> Vec<i64>[src]
fn range(&self) -> Range<i64>[src]
impl Ranged for RangedCoordu128[src]
type ValueType = u128
fn map(&self, v: &u128, limit: (i32, i32)) -> i32[src]
fn key_points(&self, max_points: usize) -> Vec<u128>[src]
fn range(&self) -> Range<u128>[src]
impl Ranged for RangedCoordu32[src]
type ValueType = u32
fn map(&self, v: &u32, limit: (i32, i32)) -> i32[src]
fn key_points(&self, max_points: usize) -> Vec<u32>[src]
fn range(&self) -> Range<u32>[src]
impl Ranged for RangedCoordu64[src]
type ValueType = u64
fn map(&self, v: &u64, limit: (i32, i32)) -> i32[src]
fn key_points(&self, max_points: usize) -> Vec<u64>[src]
fn range(&self) -> Range<u64>[src]
impl Ranged for RangedDuration[src]
type ValueType = Duration
fn range(&self) -> Range<Duration>[src]
fn map(&self, value: &Self::ValueType, limit: (i32, i32)) -> i32[src]
fn key_points(&self, max_points: usize) -> Vec<Self::ValueType>[src]
impl<T> Ranged for GroupBy<T> where
T::ValueType: PrimInt + ToPrimitive + FromPrimitive + Mul,
T: Ranged, [src]
T::ValueType: PrimInt + ToPrimitive + FromPrimitive + Mul,
T: Ranged,