[−][src]Struct plotlib::view::ContinuousView
Standard 1-dimensional view with a continuous x-axis
Methods
impl ContinuousView
[src]
pub fn new() -> ContinuousView
[src]
Create an empty view
pub fn x_max_ticks(self, val: usize) -> Self
[src]
Set the maximum number of ticks along the x axis.
pub fn y_max_ticks(self, val: usize) -> Self
[src]
Set the maximum number of ticks along the y axis.
pub fn add<R: ContinuousRepresentation + 'static>(self, repr: R) -> Self
[src]
Add a representation to the view
pub fn x_range(self, min: f64, max: f64) -> Self
[src]
Set the x range for the view
pub fn y_range(self, min: f64, max: f64) -> Self
[src]
Set the y range for the view
pub fn x_label<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
Set the label for the x-axis
pub fn y_label<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
Set the label for the y-axis
Trait Implementations
impl Default for ContinuousView
[src]
fn default() -> ContinuousView
[src]
impl View for ContinuousView
[src]
fn to_svg(&self, face_width: f64, face_height: f64) -> Result<Group, Error>
[src]
Create an SVG rendering of the view
fn to_text(&self, face_width: u32, face_height: u32) -> Result<String, Error>
[src]
Create a text rendering of the view
fn add_grid(&mut self, grid: Grid)
[src]
fn grid(&self) -> &Option<Grid>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ContinuousView
impl !Send for ContinuousView
impl !Sync for ContinuousView
impl Unpin for ContinuousView
impl !UnwindSafe for ContinuousView
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,