Skip to content

Commit 5c05395

Browse files
feat: add 5 new plot specifications
- scatter-categorical: Categorical Scatter Plot - line-styled: Styled Line Plot - line-markers: Line Plot with Markers - line-stepwise: Step Line Plot - histogram-stacked: Stacked Histogram 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 17d199b commit 5c05395

10 files changed

Lines changed: 238 additions & 0 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# histogram-stacked: Stacked Histogram
2+
3+
## Description
4+
5+
A histogram showing multiple groups stacked on top of each other within each bin. The total bar height represents the combined frequency, while colored segments show individual group contributions.
6+
7+
## Applications
8+
9+
- Comparing distributions of multiple groups
10+
- Showing composition within histogram bins
11+
- Total frequency with group breakdown
12+
- Demographic or categorical comparisons
13+
14+
## Data
15+
16+
The visualization requires:
17+
- **Continuous variable**: Values to bin
18+
- **Category variable**: Group membership for stacking
19+
20+
Example structure:
21+
```
22+
Value | Group
23+
------|-------
24+
12.5 | A
25+
18.3 | B
26+
15.7 | A
27+
22.1 | B
28+
14.2 | C
29+
...
30+
```
31+
32+
## Notes
33+
34+
- Same bin boundaries applied to all groups
35+
- Distinct colors for each group
36+
- Legend shows group labels
37+
- Total bar height = combined frequency
38+
- Consider ordering groups by size within bins
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
spec_id: histogram-stacked
2+
title: Stacked Histogram
3+
created: '2025-12-30T10:30:00Z'
4+
updated: '2025-12-30T10:30:00Z'
5+
issue: 2601
6+
suggested: claude-code
7+
tags:
8+
plot_type: [histogram, distribution]
9+
domain: [statistics, demographics]
10+
features: [stacked, grouped, comparison]
11+
data_type: [numeric, categorical]
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# line-markers: Line Plot with Markers
2+
3+
## Description
4+
5+
A line plot with visible markers at each data point, combining line and scatter plot features. This is particularly useful for sparse data where individual observations are significant.
6+
7+
## Applications
8+
9+
- Sparse datasets where each point matters
10+
- Highlighting specific data points on trend lines
11+
- Experimental data with discrete measurements
12+
- Quality control charts with individual readings
13+
14+
## Data
15+
16+
The visualization requires:
17+
- **X variable**: Continuous variable
18+
- **One or more Y variables**: Series with data points to mark
19+
20+
Example structure:
21+
```
22+
X | Value
23+
-----|-------
24+
0 | 10.5
25+
1 | 12.3
26+
2 | 11.8
27+
3 | 14.2
28+
...
29+
```
30+
31+
## Notes
32+
33+
- Markers should be clearly visible against the line
34+
- Use different marker shapes for multiple series
35+
- Marker size should be proportional to line thickness
36+
- Consider filled vs unfilled markers for distinction
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
spec_id: line-markers
2+
title: Line Plot with Markers
3+
created: '2025-12-30T10:30:00Z'
4+
updated: '2025-12-30T10:30:00Z'
5+
issue: 2599
6+
suggested: claude-code
7+
tags:
8+
plot_type: [line, scatter]
9+
domain: [general, scientific]
10+
features: [markers, data-points, sparse-data]
11+
data_type: [numeric, continuous]
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# line-stepwise: Step Line Plot
2+
3+
## Description
4+
5+
A step function plot where values remain constant until the next change, creating horizontal-then-vertical transitions. This visualization emphasizes discrete changes rather than interpolated values.
6+
7+
## Applications
8+
9+
- Discrete state changes over time
10+
- Price/value stepping (stock prices at close)
11+
- Cumulative counts that increase discretely
12+
- Digital signals and binary states
13+
- Piecewise constant functions
14+
15+
## Data
16+
17+
The visualization requires:
18+
- **X variable**: Continuous or discrete variable (often time)
19+
- **Y variable**: Values that change at specific points
20+
21+
Example structure:
22+
```
23+
X | Value
24+
-----|-------
25+
0 | 100
26+
1 | 100
27+
2 | 150
28+
3 | 150
29+
4 | 125
30+
...
31+
```
32+
33+
## Notes
34+
35+
- Step alignment options: 'pre' (before), 'mid' (middle), 'post' (after)
36+
- Clear distinction from smooth line interpolation
37+
- Horizontal segments show value persistence
38+
- Vertical segments show instantaneous changes
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
spec_id: line-stepwise
2+
title: Step Line Plot
3+
created: '2025-12-30T10:30:00Z'
4+
updated: '2025-12-30T10:30:00Z'
5+
issue: 2600
6+
suggested: claude-code
7+
tags:
8+
plot_type: [line, step]
9+
domain: [general, signal-processing]
10+
features: [discrete, step-function, piecewise]
11+
data_type: [numeric, discrete]

plots/line-styled/specification.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# line-styled: Styled Line Plot
2+
3+
## Description
4+
5+
A line plot using different line styles (solid, dashed, dotted, dash-dot) to distinguish multiple data series. This is especially useful for black-and-white printing or when color distinction is insufficient.
6+
7+
## Applications
8+
9+
- Comparing trends in print publications
10+
- Distinguishing overlapping lines without color
11+
- Accessibility-friendly visualizations
12+
- Technical documentation with monochrome printing
13+
14+
## Data
15+
16+
The visualization requires:
17+
- **X variable**: Continuous variable (often time or sequence)
18+
- **Multiple Y variables**: Different series to compare
19+
20+
Example structure:
21+
```
22+
X | Series A | Series B | Series C
23+
-----|----------|----------|----------
24+
0 | 10 | 15 | 12
25+
1 | 12 | 14 | 15
26+
2 | 15 | 13 | 18
27+
...
28+
```
29+
30+
## Notes
31+
32+
- Standard styles: solid, dashed, dotted, dash-dot
33+
- Include legend mapping styles to series names
34+
- Line width should be consistent across styles
35+
- Consider line style visibility at different scales
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
spec_id: line-styled
2+
title: Styled Line Plot
3+
created: '2025-12-30T10:30:00Z'
4+
updated: '2025-12-30T10:30:00Z'
5+
issue: 2598
6+
suggested: claude-code
7+
tags:
8+
plot_type: [line, comparison]
9+
domain: [general, publishing]
10+
features: [line-styles, multi-series, print-friendly]
11+
data_type: [numeric, continuous]
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# scatter-categorical: Categorical Scatter Plot
2+
3+
## Description
4+
5+
A scatter plot where points are colored according to a categorical variable. Each category has a distinct color, allowing visual comparison of patterns across groups. A legend maps colors to category names.
6+
7+
## Applications
8+
9+
- Visualizing relationships between variables across different groups
10+
- Comparing correlation patterns by category
11+
- Identifying clusters in multivariate data
12+
- Exploratory analysis with group membership
13+
14+
## Data
15+
16+
The visualization requires:
17+
- **X variable**: First continuous/numeric variable
18+
- **Y variable**: Second continuous/numeric variable
19+
- **Category variable**: Categorical grouping variable
20+
21+
Example structure:
22+
```
23+
X | Y | Category
24+
------|-------|----------
25+
1.2 | 3.4 | Group A
26+
2.1 | 4.5 | Group B
27+
1.8 | 3.9 | Group A
28+
...
29+
```
30+
31+
## Notes
32+
33+
- Use distinct, colorblind-safe colors for categories
34+
- Include legend for category identification
35+
- Marker shapes can also vary by group for additional distinction
36+
- Consider alpha transparency for overlapping points
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
spec_id: scatter-categorical
2+
title: Categorical Scatter Plot
3+
created: '2025-12-30T10:30:00Z'
4+
updated: '2025-12-30T10:30:00Z'
5+
issue: 2597
6+
suggested: claude-code
7+
tags:
8+
plot_type: [scatter, categorical]
9+
domain: [statistics, general]
10+
features: [grouped, color-coded, legend]
11+
data_type: [numeric, categorical]

0 commit comments

Comments
 (0)