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

Function main

crates/plotlars/examples/plotly_array2dplot.rs:3–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1use plotlars::{Array2dPlot, Plot, Text};
2
3fn main() {
4 let data = vec![
5 vec![[255, 0, 0], [0, 255, 0], [0, 0, 255]],
6 vec![[0, 0, 255], [255, 0, 0], [0, 255, 0]],
7 vec![[0, 255, 0], [0, 0, 255], [255, 0, 0]],
8 ];
9
10 Array2dPlot::builder()
11 .data(&data)
12 .plot_title(Text::from("Array 2D Plot").font("Arial").size(18))
13 .build()
14 .plot();
15}

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.80
plotMethod · 0.45
fontMethod · 0.45

Tested by

no test coverage detected