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

Method view

examples/three_plots.rs:138–148  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

136 }
137
138 fn view(&self) -> Element<'_, Message> {
139 scrollable(
140 column![
141 self.w1.view().map(|msg| Message { msg, plot_id: 1 }),
142 self.w2.view().map(|msg| Message { msg, plot_id: 2 }),
143 self.w3.view().map(|msg| Message { msg, plot_id: 3 }),
144 ]
145 .height(Length::Fixed(1200.0)),
146 )
147 .into()
148 }
149
150 fn new() -> Self {
151 // Create a shared x-axis link so all three plots pan/zoom together on the x-axis

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected