Struct plotlib::view::View
[−]
[src]
pub struct View<'a> { pub representations: Vec<&'a Representation>, // some fields omitted }
Standard 1-dimensional view with a continuous x-axis
Fields
representations: Vec<&'a Representation>
Methods
impl<'a> View<'a>
[src]
fn new() -> View<'a>
[src]
Create an empty view
fn add(self, repr: &'a Representation) -> Self
[src]
Add a representation to the view
fn x_range(self, min: f64, max: f64) -> Self
[src]
Set the x range for the view
fn y_range(self, min: f64, max: f64) -> Self
[src]
Set the y range for the view
fn x_label<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
fn y_label<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
fn to_svg(&self, face_width: f64, face_height: f64) -> Group
[src]
Create an SVG rendering of the view
fn to_text(&self, face_width: u32, face_height: u32) -> String
[src]
Create a text rendering of the view