Skip to main content

Crate iced_plot

Crate iced_plot 

Source
Expand description

A GPU-accelerated plotting widget for Iced.

  • Works with large datasets (up to millions of points)
  • Retains GPU buffers between frames for fast redraws and picking
  • Axes/labels, legends, reference lines, tooltips, crosshairs, axis linking, etc.

Quick start:

use iced_plot::{Color, PlotWidgetBuilder, Series};

let series = Series::circles((0..100).map(|i| [i as f64, i as f64]).collect(), 2.0)
    .with_color(Color::from_rgb(0.2, 0.6, 1.0))
    .with_label("points");

PlotWidgetBuilder::new()
    .with_x_label("x")
    .with_y_label("y")
    .add_series(series)
    .build()
    .unwrap();

See examples/ for more.

Structs§

AxisLink
Represents a shared axis link that can synchronize camera positions across multiple plot widgets.
Color
A color in the sRGB color space.
HLine
A horizontal line at a fixed y-coordinate.
MarkerStyle
Marker styling options for series points.
PlotWidget
A plot widget that renders data series with interactive features.
PlotWidgetBuilder
Builder for configuring and constructing a PlotWidget.
Point
A point in data-space with a visual size.
Series
A collection of per-point styled data to be plotted.
Tick
A position along an axis where a grid line and tick label is placed.
TooltipContext
Context passed to a tooltip formatting callback.
VLine
A vertical line at a fixed x-coordinate.

Enums§

LineStyle
Line styling options for series connections.
MarkerSize
Marker size modes.
MarkerType
Marker types for series points.
PlotUiMessage
Messages sent by the plot widget to the application.
TickWeight
The visual weight of a tick / grid line.

Type Aliases§

TickFormatter
A function which formats tick values into strings for display on the axis.
TickProducer
A function which generates tick positions along an axis. Takes a range (min, max) and returns a vector of ticks with their values and weights.