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

Function line_plot_additional_lines_renders

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

Source from the content-addressed store, hash-verified

160
161 #[test]
162 fn line_plot_additional_lines_renders() {
163 let df = df![
164 "x" => [1.0, 2.0, 3.0],
165 "y1" => [4.0, 5.0, 6.0],
166 "y2" => [7.0, 8.0, 9.0]
167 ]
168 .unwrap();
169 let plot = LinePlot::builder()
170 .data(&df)
171 .x("x")
172 .y("y1")
173 .additional_lines(vec!["y2"])
174 .build();
175 let svg = plot.to_svg();
176 assert!(!svg.is_empty());
177 }
178
179 #[test]
180 fn bar_plot_renders_to_svg() {

Callers

nothing calls this directly

Calls 3

to_svgMethod · 0.80
yMethod · 0.45
xMethod · 0.45

Tested by

no test coverage detected