MCPcopy Create free account
hub / github.com/5ocworkshop/bgraph / new

Method new

src/classes/cls_multi_graph.rs:53–62  ·  view source on GitHub ↗

Create a new multi-series graph

()

Source from the content-addressed store, hash-verified

51impl<'a> MultiGraph<'a> {
52 /// Create a new multi-series graph
53 pub fn new() -> Self {
54 Self {
55 series: Vec::new(),
56 x_range: (0.0, 1.0),
57 y_range: (-1.0, 1.0),
58 render_mode: RenderMode::Braille,
59 show_legend: false,
60 legend_position: LegendPosition::TopRight,
61 }
62 }
63
64 /// Add a series to the graph
65 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected