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

Function scatter_plot_styled_renders

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

Source from the content-addressed store, hash-verified

81
82 #[test]
83 fn scatter_plot_styled_renders() {
84 let df = df![
85 "x" => [1.0, 2.0, 3.0],
86 "y" => [4.0, 5.0, 6.0]
87 ]
88 .unwrap();
89 let plot = ScatterPlot::builder()
90 .data(&df)
91 .x("x")
92 .y("y")
93 .color(Rgb(255, 0, 0))
94 .opacity(0.7)
95 .size(10)
96 .build();
97 let svg = plot.to_svg();
98 assert!(!svg.is_empty());
99 }
100
101 #[test]
102 fn scatter_plot_with_title_renders() {

Callers

nothing calls this directly

Calls 6

RgbClass · 0.85
sizeMethod · 0.80
colorMethod · 0.80
to_svgMethod · 0.80
yMethod · 0.45
xMethod · 0.45

Tested by

no test coverage detected