Skip to content

Commit 47a01dd

Browse files
update(band-basic): seaborn — comprehensive quality review
Comprehensive quality review of seaborn band-basic implementation.
1 parent b634f35 commit 47a01dd

4 files changed

Lines changed: 27 additions & 15 deletions

File tree

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
""" pyplots.ai
1+
"""pyplots.ai
22
band-basic: Basic Band Plot
3-
Library: seaborn 0.13.2 | Python 3.13.11
4-
Quality: 98/100 | Created: 2025-12-23
3+
Library: seaborn 0.13.2 | Python 3.14
4+
Quality: /100 | Updated: 2026-02-23
55
"""
66

77
import matplotlib.pyplot as plt
@@ -17,23 +17,31 @@
1717
y_lower = y_center - 1.96 * noise_scale
1818
y_upper = y_center + 1.96 * noise_scale
1919

20-
# Create figure
21-
sns.set_style("whitegrid")
20+
# Plot
21+
sns.set_theme(
22+
style="whitegrid",
23+
rc={
24+
"axes.spines.top": False,
25+
"axes.spines.right": False,
26+
"grid.alpha": 0.2,
27+
"grid.linewidth": 0.8,
28+
"grid.linestyle": "--",
29+
},
30+
)
2231
fig, ax = plt.subplots(figsize=(16, 9))
2332

24-
# Band plot: confidence interval as filled region
33+
# Band: confidence interval as filled region
2534
ax.fill_between(x, y_lower, y_upper, alpha=0.3, color="#306998", label="95% Confidence Interval")
2635

2736
# Central trend line using seaborn
2837
sns.lineplot(x=x, y=y_center, ax=ax, linewidth=3, color="#FFD43B", label="Mean Trend")
2938

30-
# Styling
39+
# Style
3140
ax.set_xlabel("Time (s)", fontsize=20)
3241
ax.set_ylabel("Amplitude", fontsize=20)
33-
ax.set_title("band-basic · seaborn · pyplots.ai", fontsize=24)
42+
ax.set_title("band-basic \u00b7 seaborn \u00b7 pyplots.ai", fontsize=24, fontweight="medium")
3443
ax.tick_params(axis="both", labelsize=16)
3544
ax.legend(fontsize=16, loc="upper left")
36-
ax.grid(True, alpha=0.3, linestyle="--")
3745

3846
plt.tight_layout()
3947
plt.savefig("plot.png", dpi=300, bbox_inches="tight")

plots/band-basic/metadata/seaborn.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
library: seaborn
22
specification_id: band-basic
33
created: '2025-12-23T09:08:43Z'
4-
updated: '2025-12-23T09:11:13Z'
5-
generated_by: claude-opus-4-5-20251101
4+
updated: '2026-02-23T13:40:00Z'
5+
generated_by: claude-opus-4-6
66
workflow_run: 20456382170
77
issue: 0
8-
python_version: 3.13.11
8+
python_version: '3.14'
99
library_version: 0.13.2
1010
preview_url: https://storage.googleapis.com/pyplots-images/plots/band-basic/seaborn/plot.png
1111
preview_thumb: https://storage.googleapis.com/pyplots-images/plots/band-basic/seaborn/plot_thumb.png
1212
preview_html: null
13-
quality_score: 98
13+
quality_score: null
1414
impl_tags:
1515
dependencies: []
1616
techniques:

plots/band-basic/specification.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A band plot displays a filled region between two boundary lines, commonly used t
1616
- `x` (numeric) - Independent variable, often representing time or sequence
1717
- `y_lower` (numeric) - Lower boundary values defining the bottom of the band
1818
- `y_upper` (numeric) - Upper boundary values defining the top of the band
19-
- `y_center` (numeric, optional) - Central trend line values (mean/median)
19+
- `y_center` (numeric) - Central trend line values (mean/median), shown as a contrasting line
2020
- Size: 20-200 data points
2121
- Example: Time series with 95% confidence interval bounds
2222

plots/band-basic/specification.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: Basic Band Plot
66

77
# Specification tracking
88
created: 2025-12-15T20:42:54Z
9-
updated: 2025-12-15T20:42:54Z
9+
updated: 2026-02-23T12:00:00Z
1010
issue: 979
1111
suggested: MarkusNeusinger
1212

@@ -18,10 +18,14 @@ tags:
1818
data_type:
1919
- numeric
2020
- continuous
21+
- timeseries
2122
domain:
2223
- statistics
2324
- science
25+
- general
26+
- engineering
2427
features:
2528
- basic
2629
- confidence-interval
2730
- uncertainty
31+
- 2d

0 commit comments

Comments
 (0)