Skip to content

Commit 50821a6

Browse files
spec: add ridgeline-basic specification
Created from issue #539
1 parent e459a1f commit 50821a6

File tree

2 files changed

+142
-0
lines changed

2 files changed

+142
-0
lines changed
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
# Metadata for ridgeline-basic
2+
# Auto-synced to PostgreSQL on push to main
3+
4+
spec_id: ridgeline-basic
5+
title: Ridgeline Plot
6+
7+
# Spec-level tracking
8+
created: 2025-12-09T21:00:29Z
9+
issue: 539
10+
suggested: MarkusNeusinger
11+
updates: []
12+
13+
tags:
14+
plot_type:
15+
- ridgeline
16+
- density
17+
- distribution
18+
domain:
19+
- general
20+
- statistics
21+
features:
22+
- basic
23+
- overlapping
24+
- comparison
25+
audience:
26+
- intermediate
27+
data_type:
28+
- numeric
29+
- categorical
30+
- continuous
31+
32+
# Implementation metadata per library
33+
# GCS URLs: https://storage.googleapis.com/pyplots-images/plots/ridgeline-basic/{library}/latest.png
34+
# Interactive libraries also have .html: plotly, bokeh, altair, highcharts, pygal, letsplot
35+
implementations:
36+
matplotlib:
37+
preview_url: null
38+
current:
39+
version: null
40+
date: null
41+
issue: null
42+
generated_by: null
43+
quality_score: null
44+
history: []
45+
seaborn:
46+
preview_url: null
47+
current:
48+
version: null
49+
date: null
50+
issue: null
51+
generated_by: null
52+
quality_score: null
53+
history: []
54+
plotly:
55+
preview_url: null
56+
current:
57+
version: null
58+
date: null
59+
issue: null
60+
generated_by: null
61+
quality_score: null
62+
history: []
63+
bokeh:
64+
preview_url: null
65+
current:
66+
version: null
67+
date: null
68+
issue: null
69+
generated_by: null
70+
quality_score: null
71+
history: []
72+
altair:
73+
preview_url: null
74+
current:
75+
version: null
76+
date: null
77+
issue: null
78+
generated_by: null
79+
quality_score: null
80+
history: []
81+
plotnine:
82+
preview_url: null
83+
current:
84+
version: null
85+
date: null
86+
issue: null
87+
generated_by: null
88+
quality_score: null
89+
history: []
90+
pygal:
91+
preview_url: null
92+
current:
93+
version: null
94+
date: null
95+
issue: null
96+
generated_by: null
97+
quality_score: null
98+
history: []
99+
highcharts:
100+
preview_url: null
101+
current:
102+
version: null
103+
date: null
104+
issue: null
105+
generated_by: null
106+
quality_score: null
107+
history: []
108+
letsplot:
109+
preview_url: null
110+
current:
111+
version: null
112+
date: null
113+
issue: null
114+
generated_by: null
115+
quality_score: null
116+
history: []

plots/ridgeline-basic/spec.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# ridgeline-basic: Ridgeline Plot
2+
3+
## Description
4+
5+
A ridgeline plot (also known as joy plot) displays multiple overlapping density distributions arranged vertically, allowing effective comparison of distributions across categories. Each distribution is plotted as a filled density curve, slightly overlapping with adjacent rows to create a visually appealing layered effect. This visualization excels at revealing distribution shapes, modes, and shifts across groups.
6+
7+
## Applications
8+
9+
- Comparing salary distributions across different job titles to identify compensation patterns
10+
- Visualizing temperature distributions across months to show seasonal climate patterns
11+
- Showing survey response distributions by demographic groups to understand opinion variations
12+
13+
## Data
14+
15+
- `category` (categorical) - grouping variable for vertical arrangement (y-axis labels)
16+
- `value` (numeric, continuous) - the variable whose distribution is shown (x-axis)
17+
- Size: 5-20 categories, 50-500+ observations per category
18+
- Example: Monthly temperature readings with month as category and temperature as value
19+
20+
## Notes
21+
22+
- Distributions should overlap slightly (10-30%) for visual appeal without obscuring data
23+
- Use semi-transparent fills (alpha 0.6-0.8) to maintain visibility of overlapping areas
24+
- Named after the Joy Division album cover "Unknown Pleasures" featuring pulsar radio signals
25+
- Consider gradient coloring from bottom to top for additional visual interest
26+
- Kernel density estimation (KDE) is typically used to smooth the distributions

0 commit comments

Comments
 (0)