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

Function boxplot_renders_to_svg

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

Source from the content-addressed store, hash-verified

239
240 #[test]
241 fn boxplot_renders_to_svg() {
242 let df = df![
243 "species" => ["a", "a", "a", "a", "a", "b", "b", "b", "b", "b"],
244 "value" => [1.0, 2.0, 3.0, 4.0, 5.0, 2.0, 3.0, 4.0, 5.0, 6.0]
245 ]
246 .unwrap();
247 let plot = BoxPlot::builder()
248 .data(&df)
249 .labels("species")
250 .values("value")
251 .build();
252 let svg = plot.to_svg();
253 assert!(!svg.is_empty());
254 assert!(svg.contains("<svg"));
255 }
256
257 #[test]
258 fn boxplot_grouped_renders() {

Callers

nothing calls this directly

Calls 2

valuesMethod · 0.80
to_svgMethod · 0.80

Tested by

no test coverage detected