Skip to content

Commit e7c8fcd

Browse files
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

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# subplot-grid-custom: Custom Subplot Grid Layout
2+
3+
## Description
4+
5+
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.
6+
7+
## Applications
8+
9+
- Executive dashboards with a large overview chart and smaller detail panels
10+
- Scientific publications combining a main visualization with supporting annotations
11+
- Financial reports with a primary price chart spanning multiple columns alongside volume and indicator panels
12+
- Data exploration layouts with a large scatter matrix and smaller summary statistics plots
13+
14+
## Data
15+
16+
- `x` (numeric or categorical) - Primary variable for each subplot
17+
- `y` (numeric) - Secondary variable for each subplot
18+
- `z` (numeric, optional) - Tertiary variable for 3D or color-mapped subplots
19+
- Size: Varies per subplot, typically 20-500 points per cell
20+
- Example: Dashboard with main time series (spanning 2 columns), volume bar chart, and returns histogram
21+
22+
## Notes
23+
24+
- Support GridSpec-style layouts with colspan and rowspan parameters
25+
- Allow cells to span multiple rows (e.g., a tall sidebar plot)
26+
- Allow cells to span multiple columns (e.g., a wide header plot)
27+
- Maintain consistent spacing and alignment despite varied cell sizes
28+
- Clear visual hierarchy with larger plots for primary data and smaller for supporting views
29+
- Example grid pattern: one 2x2 cell for main plot, four 1x1 cells for detail views
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Specification-level metadata for subplot-grid-custom
2+
# Auto-synced to PostgreSQL on push to main
3+
4+
spec_id: subplot-grid-custom
5+
title: Custom Subplot Grid Layout
6+
7+
# Specification tracking
8+
created: 2025-12-30T23:43:20Z
9+
updated: null
10+
issue: 2856
11+
suggested: MarkusNeusinger
12+
13+
# Classification tags (applies to all library implementations)
14+
# See docs/concepts/tagging-system.md for detailed guidelines
15+
tags:
16+
plot_type:
17+
- subplot
18+
- grid
19+
- multi
20+
data_type:
21+
- numeric
22+
- categorical
23+
domain:
24+
- general
25+
- business
26+
features:
27+
- multi
28+
- dashboard
29+
- layout
30+
- advanced

0 commit comments

Comments
 (0)