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

Method heatmap

egui_plot/src/plot.rs:2157–2162  ·  view source on GitHub ↗

Add a heatmap.

(&mut self, heatmap: crate::Heatmap)

Source from the content-addressed store, hash-verified

2155
2156 /// Add a heatmap.
2157 pub fn heatmap(&mut self, heatmap: crate::Heatmap) {
2158 if heatmap.values.is_empty() {
2159 return;
2160 }
2161 self.items.push(Box::new(heatmap));
2162 }
2163}
2164
2165#[cfg(all(test, not(target_arch = "wasm32")))]

Callers 1

show_plotMethod · 0.80

Calls 1

is_emptyMethod · 0.80

Tested by

no test coverage detected