()
| 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() { |