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

Method add_right_axis_label

src/chart.rs:114–121  ·  view source on GitHub ↗

Add a label for the right of the chart.

(mut self, label: T)

Source from the content-addressed store, hash-verified

112
113 /// Add a label for the right of the chart.
114 pub fn add_right_axis_label<T: ToString>(mut self, label: T) -> Self {
115 if let Some(ref mut axis) = self.y_axis_right {
116 axis.set_axis_label(label.to_string())
117 } else {
118 panic!("You cannot add a label to right axis without adding an axis first.")
119 }
120 self
121 }
122
123 /// Add a label for the left of the chart.
124 pub fn add_left_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