[][src]Function plotters::prelude::make_partial_axis

pub fn make_partial_axis<T>(
    axis_range: Range<T>,
    part: Range<f64>
) -> Option<PartialAxis<<Range<T> as AsRangedCoord>::CoordDescType>> where
    Range<T>: AsRangedCoord,
    T: NumCast + Clone

Make a partial axis based on the percentage of visible portion. We can use into_partial_axis to create a partial axis range specification. But sometimes, we want to directly specify the percentage visible to the user.