Commit e7c8fcd
authored
spec: add subplot-grid-custom specification (#2867)
## New Specification: `subplot-grid-custom`
Related to #2856
---
### specification.md
# subplot-grid-custom: Custom Subplot Grid Layout
## Description
A flexible subplot grid allowing multiple different plot types arranged
in a custom grid layout with non-uniform cell sizes. Unlike regular
subplot grids with uniform cells, this layout supports cells that span
multiple rows and/or columns, enabling complex dashboard-style
visualizations where some plots require more visual real estate than
others.
## Applications
- Executive dashboards with a large overview chart and smaller detail
panels
- Scientific publications combining a main visualization with supporting
annotations
- Financial reports with a primary price chart spanning multiple columns
alongside volume and indicator panels
- Data exploration layouts with a large scatter matrix and smaller
summary statistics plots
## Data
- `x` (numeric or categorical) - Primary variable for each subplot
- `y` (numeric) - Secondary variable for each subplot
- `z` (numeric, optional) - Tertiary variable for 3D or color-mapped
subplots
- Size: Varies per subplot, typically 20-500 points per cell
- Example: Dashboard with main time series (spanning 2 columns), volume
bar chart, and returns histogram
## Notes
- Support GridSpec-style layouts with colspan and rowspan parameters
- Allow cells to span multiple rows (e.g., a tall sidebar plot)
- Allow cells to span multiple columns (e.g., a wide header plot)
- Maintain consistent spacing and alignment despite varied cell sizes
- Clear visual hierarchy with larger plots for primary data and smaller
for supporting views
- Example grid pattern: one 2x2 cell for main plot, four 1x1 cells for
detail views
---
**Next:** Add `approved` label to the issue to merge this PR.
---
:robot: *[spec-create
workflow](https://github.com/MarkusNeusinger/pyplots/actions/runs/20608360586)*
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>1 parent 370d2f3 commit e7c8fcd
2 files changed
Lines changed: 59 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
0 commit comments