oa::plot::axes::Axes

One subplot inside an oa::plot::Figure.

StRust public API

Declaration

pub struct Axes { /* private fields */ }
Public Rust declaration.

Public Methods

pub fn title(&mut self, text: &str)
pub fn title_color(&mut self, text: &str, color: Color)
pub fn caption(&mut self, text: &str)
pub fn caption_color(&mut self, text: &str, color: Color)
pub fn x_label(&mut self, text: &str)
pub fn y_label(&mut self, text: &str)
pub fn imshow(&mut self, texture: Texture)
pub fn heatmap( &mut self, values: &[f32], rows: i32, cols: i32, style: HeatmapStyle, )
pub fn plot(&mut self, y: &[f32], style: LineStyle)
pub fn plot_xy(&mut self, x: &[f32], y: &[f32], style: LineStyle)
pub fn scatter(&mut self, x: &[f32], y: &[f32], style: ScatterStyle)
pub fn bar(&mut self, y: &[f32], style: BarStyle)
pub fn histogram(&mut self, values: &[f32], bins: i32, style: BarStyle)
pub fn limits(&mut self, x_min: f32, x_max: f32, y_min: f32, y_max: f32)
pub fn auto_limits(&mut self)
pub fn grid(&mut self, visible: bool)
pub fn legend(&mut self, visible: bool)
pub fn border_color(&mut self, color: Color)
pub fn clear(&mut self)
fn clone(&self) -> Axes

Associated Functions

fn default() -> Self

Public Method Documentation

pub fn title( &mut self, text: &str )
No public source comment is attached to this declaration.
pub fn title_color( &mut self, text: &str, color: Color )
No public source comment is attached to this declaration.
pub fn caption( &mut self, text: &str )
No public source comment is attached to this declaration.
pub fn caption_color( &mut self, text: &str, color: Color )
No public source comment is attached to this declaration.
pub fn x_label( &mut self, text: &str )
No public source comment is attached to this declaration.
pub fn y_label( &mut self, text: &str )
No public source comment is attached to this declaration.
pub fn imshow( &mut self, texture: Texture )
No public source comment is attached to this declaration.
pub fn heatmap( &mut self, values: &[f32], rows: i32, cols: i32, style: HeatmapStyle )
No public source comment is attached to this declaration.
pub fn plot( &mut self, y: &[f32], style: LineStyle )
No public source comment is attached to this declaration.
pub fn plot_xy( &mut self, x: &[f32], y: &[f32], style: LineStyle )
No public source comment is attached to this declaration.
pub fn scatter( &mut self, x: &[f32], y: &[f32], style: ScatterStyle )
No public source comment is attached to this declaration.
pub fn bar( &mut self, y: &[f32], style: BarStyle )
No public source comment is attached to this declaration.
pub fn histogram( &mut self, values: &[f32], bins: i32, style: BarStyle )
No public source comment is attached to this declaration.
pub fn limits( &mut self, x_min: f32, x_max: f32, y_min: f32, y_max: f32 )
No public source comment is attached to this declaration.
pub fn auto_limits( &mut self )
No public source comment is attached to this declaration.
pub fn grid( &mut self, visible: bool )
No public source comment is attached to this declaration.
pub fn legend( &mut self, visible: bool )
No public source comment is attached to this declaration.
pub fn border_color( &mut self, color: Color )
No public source comment is attached to this declaration.
pub fn clear( &mut self )
No public source comment is attached to this declaration.
fn clone( &self ) -> Axes
No public source comment is attached to this declaration.
fn default() -> Self
No public source comment is attached to this declaration.