MCPcopy Create free account
hub / github.com/alceal/plotlars / boxplot_grouped_renders

Function boxplot_grouped_renders

crates/plotlars-plotters/src/ext.rs:258–274  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

256
257 #[test]
258 fn boxplot_grouped_renders() {
259 let df = df![
260 "species" => ["a", "a", "a", "a", "b", "b", "b", "b"],
261 "value" => [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0],
262 "g" => ["x", "x", "y", "y", "x", "x", "y", "y"]
263 ]
264 .unwrap();
265 let plot = BoxPlot::builder()
266 .data(&df)
267 .labels("species")
268 .values("value")
269 .group("g")
270 .build();
271 let svg = plot.to_svg();
272 assert!(!svg.is_empty());
273 assert!(svg.contains("<svg"));
274 }
275
276 #[test]
277 fn heatmap_renders_to_svg() {

Callers

nothing calls this directly

Calls 2

valuesMethod · 0.80
to_svgMethod · 0.80

Tested by

no test coverage detected