MCPcopy Create free account
hub / github.com/emilk/egui_plot / axis

Method axis

egui_plot/src/items/span.rs:67–74  ·  view source on GitHub ↗
(mut self, axis: Axis)

Source from the content-addressed store, hash-verified

65 /// it by calling `label_align` after this call.
66 #[inline]
67 pub fn axis(mut self, axis: Axis) -> Self {
68 self.axis = axis;
69 match axis {
70 Axis::X => self.label_align = Align2::CENTER_TOP,
71 Axis::Y => self.label_align = Align2::LEFT_CENTER,
72 }
73 self
74 }
75
76 /// Set the range.
77 #[inline]

Callers 1

show_plotMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected