Expand description
§flow-plots
A library for creating visualizations of flow cytometry data.
§Overview
This library provides a flexible, extensible API for creating different types of plots from flow cytometry data. The architecture is designed to be easily extended with new plot types.
§Basic Usage
use flow_plots::{DensityPlot, DensityPlotOptions};
use flow_plots::render::RenderConfig;
let plot = DensityPlot::new();
let options = DensityPlotOptions::new()
.width(800)
.height(600)
.build()?;
let data: Vec<(f32, f32)> = vec![(100.0, 200.0)];
let mut render_config = RenderConfig::default();
let bytes = plot.render(data, &options, &mut render_config)?;§Architecture
The library is organized into several modules:
options: Plot configuration types using the builder patternplots: Plot implementations (currentlyDensityPlot)render: Rendering infrastructure and progress reportingdensity: Density calculation algorithmscolormap: Color map implementationshelpers: Helper functions for common initialization patterns
Re-exports§
pub use colormap::ColorMaps;pub use options::AxisOptions;pub use options::BasePlotOptions;pub use options::DensityPlotOptions;pub use options::PlotOptions;pub use plots::DensityPlot;pub use plots::Plot;pub use plots::PlotType;pub use render::ProgressCallback;pub use render::ProgressInfo;pub use render::RenderConfig;
Modules§
Functions§
- create_
axis_ specs - @deprecated The old PlotOptions struct has been removed. Use DensityPlotOptions with builder pattern instead.
- get_
percentile_ bounds - Calculate percentile bounds for a dataset