How visualization is organized
paretorium.visualization is an optional package for inspecting a study,
comparing its designs, and publishing the results. It works with the same
study objects and results as the core framework. It does not run models,
resample inputs, or change a study's objectives. Install it with
python -m pip install "paretorium[visualization]".
Choose a view based on the question
| Question | Supply | Built-in views |
|---|---|---|
| Which designs trade cost against performance? | Concept summaries from summarize() |
tradespace() and its companion tradespace_table() |
| Does the answer change with the metrics or decisions I focus on? | Concept summaries | comparison_grid() for metric pairs; decision_atlas() for decision and option-pair coloring |
| How variable are the paired outcomes of selected designs? | Raw EvaluationResult records |
outcome_tradespace(), joint_outcomes(), joint_outcome_atlas() |
| What input assumptions did I declare? | The Study, or a Parameter and any scenarios to show |
parameter_atlas(), parameter_distribution() |
| How does a metric value map to stakeholder utility? | A Metric with a utility callable |
utility_curve() |
| Which decisions are associated with variation in an outcome? | A precomputed ArchitecturalImportance result |
architectural_importance_section() |
A summary dot represents one design in one scenario. A sample dot
represents one evaluation: its two coordinates came from the same draw.
Use raw evaluations for sample plots; summary quantiles cannot recover
which outcomes occurred together. Use the short design ID (for example,
D-004) to find a design across charts and tables.
Read the comparisons correctly
On a summary tradespace, the axes are two objectives. The Pareto front is computed on that pair, among designs that meet the requested sampled feasibility threshold. Designs below the threshold are still shown. A front for a metric pair need not match the study's all-objective front. The companion table has the same comparison status and per-limit counts when you give it the same inputs and settings.
A comparison grid can add numeric color and point area; these extra metrics do not enter the front calculation. Decision coloring instead shows which options a design uses. Highlighting an option combination can draw its own front without changing the overall one. In HTML, a Color by picker can switch decisions without moving the points or recalculating the front. In static exports it uses the declared default. Selected designs can also be labeled directly on summary charts.
- Outcome bars are opt-in and span the marginal p05–p95 outcomes of each metric. They are not confidence intervals for a statistic or a joint probability region.
- Sample margins show per-design box plots in
outcome_tradespace()or histograms with smooth densities where supported injoint_outcomes(). Optional joint-density contours approximate where outcomes concentrate; sparse, constant, or collinear samples may not support a contour. - No-go shading and dashed rules show limits on the displayed metrics only. Rules stop where the other axis already excludes the region. These marks do not imply joint feasibility: a median may pass while samples or off-axis metrics fail.
- Reference designs and the utopia star are context, not candidates. A reference is a benchmark you place at explicit coordinates. The star points toward the preferred corner when both axes have directions; it is not a design or a computed ideal value.
Fixed axis bounds crop the view without filtering the analysis. A metric in a comparison grid keeps its range wherever it appears. The joint outcome atlas also shares histogram bins and marginal density scales, so panels can be compared without mistaking a change of scale for a change in spread.
Separate assumptions, observations, and preferences
The parameter atlas plots declared assumptions, not the draws stored
in a run. It shows the base value, option cases, and explicit scenario
overrides. It supports fixed values, Uniform, Triangular, Beta,
Lognormal, and Discrete. Density, probability mass, and fixed values
use separate panels on a common value axis when they appear together.
Built-in plots for realized input draws, Binomial, and custom input
distributions are not currently available.
A utility curve plots a preference over one metric's input range. It doesn't alter the raw metric or enforce its hard limit. Study models choose how to combine utilities into a score; charts can then compare those scores like other metrics. Architectural importance has a different purpose: its tables show associations in the evaluated design space, not which decisions are causal or which design should win.
Compose a chart or publish a report
The built-in views build native Altair charts with Vega-Lite
specifications. You can use a full view like tradespace(), compose
layers such as plot_dots() and pareto_front_layer() with your own
Altair layers, or use a wholly custom chart. The low-level layers draw
values you supply; they do not select Pareto members or estimate bounds.
The caller picks metrics, encodings, thresholds, and which overlays to
show. A reusable Theme styles those choices: for example, the marks,
palette, and interval caps. It doesn't select the color metric or turn
on bars. The styling travels with the chart specification.
For publishing, a Figure wraps a chart with a caption. A Table
keeps typed cells separate from display formatting. A Section
orders figures and tables, and a Report orders sections. Atlases
already return sections that can be inserted into a report.
| Output | What it preserves |
|---|---|
| Notebook output | Interactive charts and tables in a cell, individually or as a section or report. See the Colab tutorial. |
| Standalone SVG | A single chart as vector artwork. |
| Standalone HTML | A single chart with a bundled runtime and chart interactions. |
| Report HTML | Figures and semantic tables, with independent table sort and filter controls. Table interactions don't update charts. |
| Report PDF | Paginated vector figures and static tables with repeated headers; browser controls are not carried over. |
The publishers use the same chart specifications; they lay out the content without changing the analysis. If you need data rather than a visual report, use the separate CSV and Excel exporters.
Start with Create your first tradespace, or look up a visualization component.