MCPcopy Create free account
hub / github.com/donkeyteethUX/iced_plot / line_only

Method line_only

src/series.rs:337–349  ·  view source on GitHub ↗

Create a new line-only series.

(positions: Vec<[f64; 2]>, line_style: LineStyle)

Source from the content-addressed store, hash-verified

335
336 /// Create a new line-only series.
337 pub fn line_only(positions: Vec<[f64; 2]>, line_style: LineStyle) -> Self {
338 Self {
339 id: ShapeId::new(),
340 positions,
341 transform: PositionTransform::default(),
342 point_colors: None,
343 label: None,
344 color: Color::from_rgb(0.3, 0.3, 0.9),
345 marker_style: None,
346 line_style: Some(line_style),
347 pickable: true,
348 }
349 }
350
351 /// Create a new marker-only series.
352 pub fn markers_only(positions: Vec<[f64; 2]>, marker_style: MarkerStyle) -> Self {

Callers

nothing calls this directly

Calls 1

newFunction · 0.50

Tested by

no test coverage detected