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

Method add_top_axis_label

src/chart.rs:134–141  ·  view source on GitHub ↗

Add a label for the top of the chart.

(mut self, label: T)

Source from the content-addressed store, hash-verified

132
133 /// Add a label for the top of the chart.
134 pub fn add_top_axis_label<T: ToString>(mut self, label: T) -> Self {
135 if let Some(ref mut axis) = self.x_axis_top {
136 axis.set_axis_label(label.to_string())
137 } else {
138 panic!("You cannot add a label to top axis without adding an axis first.")
139 }
140 self
141 }
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 {

Callers

nothing calls this directly

Calls 1

set_axis_labelMethod · 0.80

Tested by

no test coverage detected