[][src]Trait plotlib::representation::CategoricalRepresentation

pub trait CategoricalRepresentation {
    fn range(&self) -> (f64, f64);
fn ticks(&self) -> Vec<String>;
fn to_svg(
        &self,
        x_axis: &CategoricalAxis,
        y_axis: &ContinuousAxis,
        face_width: f64,
        face_height: f64
    ) -> Group;
fn to_text(
        &self,
        x_axis: &CategoricalAxis,
        y_axis: &ContinuousAxis,
        face_width: u32,
        face_height: u32
    ) -> String; }

A representation of data that is categorical in the x-axis but continuous in the y-axis.

Required methods

fn range(&self) -> (f64, f64)

The maximum range in the y-axis. Used for auto-scaling the axis.

fn ticks(&self) -> Vec<String>

The ticks that this representation covers. Used to collect all ticks for display.

fn to_svg(
    &self,
    x_axis: &CategoricalAxis,
    y_axis: &ContinuousAxis,
    face_width: f64,
    face_height: f64
) -> Group

fn to_text(
    &self,
    x_axis: &CategoricalAxis,
    y_axis: &ContinuousAxis,
    face_width: u32,
    face_height: u32
) -> String

Loading content...

Implementors

impl CategoricalRepresentation for BarChart[src]

fn range(&self) -> (f64, f64)[src]

The maximum range. Used for auto-scaling axis

fn ticks(&self) -> Vec<String>[src]

The ticks that this representation covers. Used to collect all ticks for display

impl<'a> CategoricalRepresentation for BoxPlot<'a>[src]

fn range(&self) -> (f64, f64)[src]

The maximum range. Used for auto-scaling axis

fn ticks(&self) -> Vec<String>[src]

The ticks that this representation covers. Used to collect all ticks for display

Loading content...