Struct BarPlot

Source
pub struct BarPlot<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> BarPlot<'a>

Source

pub fn new() -> Self

Source

pub fn add_values(&mut self, values: &'a [f64])

Source

pub fn set_background_color(&mut self, color: &'a str)

Source

pub fn set_line_color(&mut self, color: &'a str)

Source

pub fn set_text_color(&mut self, color: &'a str)

Source

pub fn set_tick_color(&mut self, color: &'a str)

Source

pub fn set_bar_colors_by_uniform(&mut self, color: &'a str)

Source

pub fn set_bar_colors_by_threshold( &mut self, min: &'a str, low: &'a str, high: &'a str, max: &'a str, )

Source

pub fn add_bar_colors_by_category(&mut self, color: &'a str)

Source

pub fn add_bar_colors_from_vec(&mut self, colors: Vec<&'a str>)

Source

pub fn add_bar_color_override(&mut self, bar: usize, color: &'a str)

Source

pub fn set_show_horizontal_lines(&mut self)

Source

pub fn set_show_vertical_lines(&mut self)

Source

pub fn set_plot_window_size( &mut self, x_length: i16, x_offset: i16, y_length: i16, y_offset: i16, )

Source

pub fn set_scale_range(&mut self, min: i64, max: i64, step: u64)

Source

pub fn set_bin_markers(&mut self, bin_markers: &'a [String])

Source

pub fn set_bin_markers_middle(&mut self)

Source

pub fn set_bin_markers_left(&mut self)

Source

pub fn set_bin_markers_right(&mut self)

Source

pub fn set_bar_margin(&mut self, margin: i16)

Source

pub fn set_bin_margin(&mut self, margin: i16)

Source

pub fn set_y_axis_tick_length(&mut self, p: i16)

Source

pub fn set_x_axis_tick_length(&mut self, p: i16)

Source

pub fn set_negative_bars_go_down(&mut self)

Source

pub fn set_text_left(&mut self, text: &'a str)

Source

pub fn set_text_left_offset(&mut self, offset: i16)

Source

pub fn set_text_right(&mut self, text: &'a str)

Source

pub fn set_text_right_offset(&mut self, offset: i16)

Source

pub fn set_text_bottom(&mut self, text: &'a str)

Source

pub fn set_text_bottom_offset(&mut self, offset: i16)

Source

pub fn set_text_top(&mut self, text: &'a str)

Source

pub fn set_text_top_offset(&mut self, offset: i16)

Source

pub fn set_legend(&mut self, categories: &'a [&'a str])

Source

pub fn set_legend_position(&mut self, x: i16, y: i16)

Source

pub fn set_font_size(&mut self, p: i16)

Source

pub fn set_show_window_border(&mut self)

Source

pub fn set_show_plot_border(&mut self)

Source

pub fn to_svg(&mut self, width: u32, height: u32) -> String

Trait Implementations§

Source§

impl<'a> Debug for BarPlot<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.