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

Method vline

egui_plot/src/plot.rs:2103–2108  ·  view source on GitHub ↗

Add a vertical line. Can be useful e.g. to show min/max bounds or similar. Always fills the full height of the plot.

(&mut self, mut vline: crate::VLine)

Source from the content-addressed store, hash-verified

2101 /// Can be useful e.g. to show min/max bounds or similar.
2102 /// Always fills the full height of the plot.
2103 pub fn vline(&mut self, mut vline: crate::VLine) {
2104 if vline.stroke.color == Color32::TRANSPARENT {
2105 vline.stroke.color = self.auto_color();
2106 }
2107 self.items.push(Box::new(vline));
2108 }
2109
2110 /// Add an axis-aligned span.
2111 ///

Callers 1

show_plotMethod · 0.80

Calls 1

auto_colorMethod · 0.80

Tested by

no test coverage detected