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>
Create an empty view
fn add(self, repr: &'a Representation) -> Self
Add a representation to the view
fn x_range(self, min: f64, max: f64) -> Self
Set the x range for the view
fn y_range(self, min: f64, max: f64) -> Self
Set the y range for the view
fn to_svg(&self, face_width: f64, face_height: f64) -> Group
Create an SVG rendering of the view
fn to_text(&self, face_width: u32, face_height: u32) -> String
Create a text rendering of the view