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

Function scatter_plot_with_title_renders

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

Source from the content-addressed store, hash-verified

100
101 #[test]
102 fn scatter_plot_with_title_renders() {
103 let df = df![
104 "x" => [1.0, 2.0, 3.0],
105 "y" => [4.0, 5.0, 6.0]
106 ]
107 .unwrap();
108 let plot = ScatterPlot::builder()
109 .data(&df)
110 .x("x")
111 .y("y")
112 .plot_title("My Plot")
113 .x_title("X Axis")
114 .y_title("Y Axis")
115 .build();
116 let svg = plot.to_svg();
117 assert!(svg.contains("My Plot"));
118 }
119
120 #[test]
121 fn horizontal_legend_border_debug() {

Callers

nothing calls this directly

Calls 3

to_svgMethod · 0.80
yMethod · 0.45
xMethod · 0.45

Tested by

no test coverage detected