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

Function x_axis_label

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

Source from the content-addressed store, hash-verified

38}
39
40fn x_axis_label<'a, M: 'a>(label: &'a str, size: f32, color: Color) -> Element<'a, M> {
41 container(text(label).size(size).color(color))
42 .align_x(Horizontal::Center)
43 .align_y(Vertical::Bottom)
44 .width(Length::Fill)
45 .height(Length::Shrink)
46 .into()
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))

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected