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

Function line_plot_renders_to_svg

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

Source from the content-addressed store, hash-verified

147
148 #[test]
149 fn line_plot_renders_to_svg() {
150 let df = df![
151 "x" => [1.0, 2.0, 3.0, 4.0],
152 "y" => [10.0, 20.0, 15.0, 25.0]
153 ]
154 .unwrap();
155 let plot = LinePlot::builder().data(&df).x("x").y("y").build();
156 let svg = plot.to_svg();
157 assert!(!svg.is_empty());
158 assert!(svg.contains("<svg"));
159 }
160
161 #[test]
162 fn line_plot_additional_lines_renders() {

Callers

nothing calls this directly

Calls 3

to_svgMethod · 0.80
yMethod · 0.45
xMethod · 0.45

Tested by

no test coverage detected