MCPcopy Create free account
hub / github.com/donkeyteethUX/iced_plot / y_axis_label

Function y_axis_label

src/axes_labels.rs:49–57  ·  view source on GitHub ↗
(label: &'a str, size: f32, color: Color)

Source from the content-addressed store, hash-verified

47}
48
49fn y_axis_label<'a, M: 'a>(label: &'a str, size: f32, color: Color) -> Element<'a, M> {
50 container(text(label).size(size).color(color).wrapping(Wrapping::Word))
51 .align_x(Horizontal::Left)
52 .align_y(Vertical::Center)
53 .width(Length::Shrink)
54 .max_width(100.0)
55 .height(Length::Fill)
56 .into()
57}

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected