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:
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§
- Axis
Link - Represents a shared axis link that can synchronize camera positions across multiple plot widgets.
- Color
- A color in the
sRGBcolor space. - HLine
- A horizontal line at a fixed y-coordinate.
- Marker
Style - Marker styling options for series points.
- Plot
Widget - A plot widget that renders data series with interactive features.
- Plot
Widget Builder - 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.
- Tooltip
Context - Context passed to a tooltip formatting callback.
- VLine
- A vertical line at a fixed x-coordinate.
Enums§
- Line
Style - Line styling options for series connections.
- Marker
Type - Marker types for series points.
- Plot
UiMessage - Messages sent by the plot widget to the application.
- Tick
Weight - The visual weight of a tick / grid line.
Type Aliases§
- Tick
Formatter - A function which formats tick values into strings for display on the axis.
- Tick
Producer - 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.