#![warn(missing_docs)]
#![warn(clippy::all)]
#![warn(clippy::pedantic)]
#![allow(clippy::module_name_repetitions)]
pub mod core;
pub mod backend;
pub mod figure {
}
pub mod plots;
pub mod color;
pub mod axes;
pub mod legend;
pub mod text;
pub mod integration;
pub mod output {
}
pub mod style {
}
pub mod error {
use thiserror::Error;
#[derive(Error, Debug)]
pub enum Error {
#[error("IO error: {0}")]
Io(#[from] std::io::Error),
#[error("Invalid data: {0}")]
InvalidData(String),
#[error("Rendering error: {0}")]
Rendering(String),
}
pub type Result<T> = std::result::Result<T, Error>;
}
pub mod prelude {
pub use crate::axes::{Axis, AxisPosition, LabelAlignment};
pub use crate::color::{Color, Colormap, Palette};
pub use crate::core::{Bounds, Canvas, DataSeries, Drawable, Point2D, Series};
pub use crate::error::{Error, Result};
pub use crate::legend::{
BarLegend, BarLegendPosition, HorizontalAlignment, Legend, LegendEntry, LegendPosition,
LegendShape, MarkerShape as LegendMarker,
};
pub use crate::plots::area::{AreaPlot, StackedAreaPlot};
pub use crate::plots::bar::{BarOrientation, BarPlot};
pub use crate::plots::boxplot::{BoxPlot, OutlierMethod};
pub use crate::plots::bubble::BubbleChart;
pub use crate::plots::datelistplot::{DateListPlot, DateListStyle};
pub use crate::plots::heatmap::{Heatmap, ValueFormat};
pub use crate::plots::histogram::{BinStrategy, Histogram};
pub use crate::plots::line::LinePlot;
pub use crate::plots::qq::{Distribution, PPPlot, QQPlot};
pub use crate::plots::scatter::{MarkerShape, MarkerStyle, ScatterPlot};
pub use crate::plots::stacked_bar::StackedBarPlot;
pub use crate::plots::timeline::{Timeline, TimelineOrientation};
pub use crate::plots::treemap::Treemap;
pub use crate::plots::violin::{Kernel, ViolinPlot};
pub use crate::text::{parse_math, MathNotation};
#[cfg(feature = "raster")]
pub use crate::backend::SkiaCanvas;
pub use crate::backend::SvgCanvas;
}
pub use error::{Error, Result};
#[cfg(test)]
mod tests {
#[test]
fn test_placeholder() {
assert_eq!(2 + 2, 4);
}
}