pub struct BarPlot<'a> { /* private fields */ }Implementations§
Source§impl<'a> BarPlot<'a>
impl<'a> BarPlot<'a>
pub fn new() -> Self
pub fn add_values(&mut self, values: &'a [f64])
pub fn set_background_color(&mut self, color: &'a str)
pub fn set_line_color(&mut self, color: &'a str)
pub fn set_text_color(&mut self, color: &'a str)
pub fn set_tick_color(&mut self, color: &'a str)
pub fn set_bar_colors_by_uniform(&mut self, color: &'a str)
pub fn set_bar_colors_by_threshold( &mut self, min: &'a str, low: &'a str, high: &'a str, max: &'a str, )
pub fn add_bar_colors_by_category(&mut self, color: &'a str)
pub fn add_bar_colors_from_vec(&mut self, colors: Vec<&'a str>)
pub fn add_bar_color_override(&mut self, bar: usize, color: &'a str)
pub fn set_show_horizontal_lines(&mut self)
pub fn set_show_vertical_lines(&mut self)
pub fn set_plot_window_size( &mut self, x_length: i16, x_offset: i16, y_length: i16, y_offset: i16, )
pub fn set_scale_range(&mut self, min: i64, max: i64, step: u64)
pub fn set_bin_markers(&mut self, bin_markers: &'a [String])
pub fn set_bin_markers_middle(&mut self)
pub fn set_bin_markers_left(&mut self)
pub fn set_bin_markers_right(&mut self)
pub fn set_bar_margin(&mut self, margin: i16)
pub fn set_bin_margin(&mut self, margin: i16)
pub fn set_y_axis_tick_length(&mut self, p: i16)
pub fn set_x_axis_tick_length(&mut self, p: i16)
pub fn set_negative_bars_go_down(&mut self)
pub fn set_text_left(&mut self, text: &'a str)
pub fn set_text_left_offset(&mut self, offset: i16)
pub fn set_text_right(&mut self, text: &'a str)
pub fn set_text_right_offset(&mut self, offset: i16)
pub fn set_text_bottom(&mut self, text: &'a str)
pub fn set_text_bottom_offset(&mut self, offset: i16)
pub fn set_text_top(&mut self, text: &'a str)
pub fn set_text_top_offset(&mut self, offset: i16)
pub fn set_legend(&mut self, categories: &'a [&'a str])
pub fn set_legend_position(&mut self, x: i16, y: i16)
pub fn set_font_size(&mut self, p: i16)
pub fn set_show_window_border(&mut self)
pub fn set_show_plot_border(&mut self)
pub fn to_svg(&mut self, width: u32, height: u32) -> String
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for BarPlot<'a>
impl<'a> RefUnwindSafe for BarPlot<'a>
impl<'a> Send for BarPlot<'a>
impl<'a> Sync for BarPlot<'a>
impl<'a> Unpin for BarPlot<'a>
impl<'a> UnwindSafe for BarPlot<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more