Skip to main content

ScatterPlotStateData

ScatterPlotStateData

Serializable state data for ScatterPlotWidget.

#include <ScatterPlotState.hpp>

Public Attributes

Name
std::string instance_id
std::string display_name
std::string background_color
Background color as #RRGGBB (OpenGL clear and future SVG export).
CorePlotting::ViewStateData view_state
HorizontalAxisStateData horizontal_axis
VerticalAxisStateData vertical_axis
std::optional< ScatterAxisSource > x_source
X-axis data source.
std::optional< ScatterAxisSource > y_source
Y-axis data source.
bool show_reference_line
Show y=x reference line.
bool color_by_group
Color points by their group assignment.
bool show_cluster_labels
Show cluster centroid labels as text overlay.
CorePlotting::GlyphStyleData glyph_style
Glyph style for scatter points (shape, size, color, alpha).
ScatterColorConfigData color_config
Feature coloring configuration.
std::string selection_mode
Selection mode.
rfl::Skip< std::vector< std::size_t > > selected_indices

Public Attributes Documentation

variable instance_id

std::string instance_id;

variable display_name

std::string display_name = "Scatter Plot";

variable background_color

std::string background_color = "#1A1A1A";

Background color as #RRGGBB (OpenGL clear and future SVG export).

variable view_state

CorePlotting::ViewStateData view_state;

variable horizontal_axis

HorizontalAxisStateData horizontal_axis;

variable vertical_axis

VerticalAxisStateData vertical_axis;

variable x_source

std::optional< ScatterAxisSource > x_source;

X-axis data source.

variable y_source

std::optional< ScatterAxisSource > y_source;

Y-axis data source.

variable show_reference_line

bool show_reference_line = false;

Show y=x reference line.

variable color_by_group

bool color_by_group = true;

Color points by their group assignment.

variable show_cluster_labels

bool show_cluster_labels = false;

Show cluster centroid labels as text overlay.

variable glyph_style

CorePlotting::GlyphStyleData glyph_style {CorePlotting::GlyphType::Circle, 5.0f, "#3388FF", 0.8f};

Glyph style for scatter points (shape, size, color, alpha).

variable color_config

ScatterColorConfigData color_config;

Feature coloring configuration.

variable selection_mode

std::string selection_mode = "single_point";

Selection mode.

variable selected_indices

rfl::Skip< std::vector< std::size_t > > selected_indices;

Indices of currently selected points in the scatter data arrays. Not serialized (transient state).


Updated on 2026-11-13 at 20:25:39 +0000