Trait plotters::coord::ranged1d::KeyPointHint[][src]

pub trait KeyPointHint {
    fn max_num_points(&self) -> usize;
fn weight(&self) -> KeyPointWeight; fn bold_points(&self) -> usize { ... } }
Expand description

The trait for a hint provided to the key point algorithm used by the coordinate specs. The most important constraint is the max_num_points which means the algorithm could emit no more than specific number of key points weight is used to determine if this is used as a bold grid line or light grid line bold_points returns the max number of coresponding bold grid lines

Required methods

fn max_num_points(&self) -> usize[src]

Returns the max number of key points

fn weight(&self) -> KeyPointWeight[src]

Returns the weight for this hint

Provided methods

fn bold_points(&self) -> usize[src]

Returns the point number constraint for the bold points

Implementations on Foreign Types

impl KeyPointHint for usize[src]

Implementors