1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
//! A strongly typed scientific plotting and SVG rendering library.
//!
//! Complete immutable theme values and their built-in constructors are available
//! from the crate root:
//! ```
//! let _ = lichtung_plot::Theme::publication();
//! ```
//!
//! Canvas selects a complete root theme from its explicit or construction-default
//! slot. Child Plots without an explicit theme inherit that effective value:
//! ```
//! use lichtung_plot::{Canvas, NumericValues, Plot, Theme};
//!
//! let canvas = Canvas::grid(1, 2)?
//! .theme(Theme::nature())
//! .panel(0, 0, Plot::scatter(
//! NumericValues::new("x", [1.0, 2.0]),
//! NumericValues::new("y", [1.0, 2.0]),
//! ))?
//! .panel(0, 1, Plot::scatter(
//! NumericValues::new("x", [1.0, 2.0]),
//! NumericValues::new("y", [2.0, 1.0]),
//! ).theme(Theme::science()))?;
//! # let _ = canvas;
//! # Ok::<(), lichtung_plot::Error>(())
//! ```
//!
//! Specialized values live in their functional modules. The complete root
//! Theme and Color types have one public path:
//! ```compile_fail
//! use lichtung_plot::theme::Theme;
//! ```
//!
//! The plot module exposes configuration, not implementation routines:
//! ```compile_fail
//! use lichtung_plot::plots::line;
//! ```
//! ```compile_fail
//! use lichtung_plot::AlphaEncoding;
//! ```
//!
//! Common line patterns can be used in complete theme strokes and reference
//! guides without converting between types:
//! ```
//! use lichtung_plot::{Color, elements::GuideStyle, style::LinePattern, theme::StrokeTheme};
//! let pattern = LinePattern::MediumDash;
//! let stroke = StrokeTheme::new(Color::rgb(80, 120, 140), 1.5, pattern)?;
//! let guide = GuideStyle::new(stroke.get_color(), stroke.get_width(), stroke.get_pattern())?;
//! assert_eq!(guide.get_pattern(), pattern);
//! # Ok::<(), lichtung_plot::Error>(())
//! ```
//!
//! Public scale identities may grow in later releases:
//! ```compile_fail
//! use lichtung_plot::scales::ContinuousScaleKind;
//! fn name(kind: ContinuousScaleKind) -> &'static str {
//! match kind {
//! ContinuousScaleKind::Sequential => "sequential",
//! ContinuousScaleKind::Diverging => "diverging",
//! }
//! }
//! ```
//!
//! Decoration rendering is also private:
//! ```compile_fail
//! use lichtung_plot::decorations::title_block::TitleBlock;
//! ```
//!
//! ```compile_fail
//! use lichtung_plot::layout::Layout;
//! ```
//!
//! Alpha inputs are exported through scales; internal preparation stays private:
//! ```compile_fail
//! use lichtung_plot::alpha::AlphaTarget;
//! ```
/// Fixed local image resources and native composition.
/// Scientific input values and raw source identities.
/// Typed failure reasons and operation effects.
/// Plot-family markers and sealed configuration capabilities.
/// Layout and absolute publication-size configuration.
/// Cancellation and resource options for a single native operation.
/// Publication options.
/// Plot-family identities, scientific inputs and plot-specific configuration.
/// Portable native plotting declarations.
/// Display-only statistics (KDE, CI, OLS for fit lines).
/// Font configuration, text layout and positioning.
/// Complete theme components and immutable theme construction.
/// Coordinate axes, positions, domains and tick policies.
/// Additional plot layers, annotations and significance declarations.
/// Scientific labels, number presentation and formatter contexts.
/// Legend and guide configuration.
/// Scientific color and opacity encodings.
/// Shared mark styles and paint values.
pub use Plot;
pub use Canvas;
pub use Layer;
pub use ;
pub use NumericFormat;
pub use Output;
pub use Text;
pub use Color;
pub use Theme;
pub use ;