Skip to main content

Module scatter

Module scatter 

Source
Expand description

Scatter chart builder methods.

This module extends ScatterArtist with a fluent API for configuring scatter plot properties. Since [Axes::scatter] returns Result<&mut ScatterArtist>, these builder methods can be chained directly on the return value:

ax.scatter(&x, &y)?
    .color(Color::TAB_ORANGE)
    .marker(Marker::Diamond)
    .size(8.0)
    .label("Observations")
    .alpha(0.7);