Trait ContinuousRepresentation

Source
pub trait ContinuousRepresentation {
    // Required methods
    fn range(&self, dim: u32) -> (f64, f64);
    fn to_svg(
        &self,
        x_axis: &ContinuousAxis,
        y_axis: &ContinuousAxis,
        face_width: f64,
        face_height: f64,
    ) -> Group;
    fn legend_svg(&self) -> Option<Group>;
    fn to_text(
        &self,
        x_axis: &ContinuousAxis,
        y_axis: &ContinuousAxis,
        face_width: u32,
        face_height: u32,
    ) -> String;
}
Expand description

A representation of data that is continuous in two dimensions.

Required Methods§

Source

fn range(&self, dim: u32) -> (f64, f64)

The maximum range in each dimension. Used for auto-scaling axes.

Source

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

Source

fn legend_svg(&self) -> Option<Group>

Returns None if no legend has been specified for this representation

Source

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

Implementors§