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

Function scatter_plot_grouped_renders

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

Source from the content-addressed store, hash-verified

62
63 #[test]
64 fn scatter_plot_grouped_renders() {
65 let df = df![
66 "x" => [1.0, 2.0, 3.0, 4.0],
67 "y" => [10.0, 20.0, 15.0, 25.0],
68 "g" => ["a", "a", "b", "b"]
69 ]
70 .unwrap();
71 let plot = ScatterPlot::builder()
72 .data(&df)
73 .x("x")
74 .y("y")
75 .group("g")
76 .build();
77 let svg = plot.to_svg();
78 assert!(!svg.is_empty());
79 assert!(svg.contains("<svg"));
80 }
81
82 #[test]
83 fn scatter_plot_styled_renders() {

Callers

nothing calls this directly

Calls 3

to_svgMethod · 0.80
yMethod · 0.45
xMethod · 0.45

Tested by

no test coverage detected