MCPcopy Index your code
hub / github.com/askanium/rustplotlib / add_bottom_axis_label

Method add_bottom_axis_label

src/chart.rs:144–151  ·  view source on GitHub ↗

Add a label for the bottom of the chart.

(mut self, label: T)

Source from the content-addressed store, hash-verified

142
143 /// Add a label for the bottom of the chart.
144 pub fn add_bottom_axis_label<T: ToString>(mut self, label: T) -> Self {
145 if let Some(ref mut axis) = self.x_axis_bottom {
146 axis.set_axis_label(label.to_string())
147 } else {
148 panic!("You cannot add a label to bottom axis without adding an axis first.")
149 }
150 self
151 }
152
153 /// Return the offset from the left where the view starts.
154 pub fn get_view_horizontal_start_offset(&self) -> isize {

Callers 8

mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 1

set_axis_labelMethod · 0.80

Tested by

no test coverage detected