-
Notifications
You must be signed in to change notification settings - Fork 0
update(heatmap-basic): plotly — comprehensive quality review #4254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
6711df1
0ca8b18
5511aac
608704d
fc609bd
bc83a9b
5c82d71
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,7 +1,7 @@ | ||||||
| """ pyplots.ai | ||||||
| heatmap-basic: Basic Heatmap | ||||||
| Library: plotly 6.5.0 | Python 3.13.11 | ||||||
| Quality: 92/100 | Created: 2025-12-23 | ||||||
| Library: plotly 6.5.2 | Python 3.14.3 | ||||||
| Quality: 88/100 | Updated: 2026-02-15 | ||||||
| """ | ||||||
|
|
||||||
| import numpy as np | ||||||
|
|
@@ -11,49 +11,64 @@ | |||||
| # Data | ||||||
| np.random.seed(42) | ||||||
|
|
||||||
| # Create sample data: monthly sales across different product categories | ||||||
| months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"] | ||||||
| categories = ["Electronics", "Clothing", "Food", "Books", "Sports", "Home", "Beauty", "Toys"] | ||||||
| categories = ["Electronics", "Clothing", "Food & Beverage", "Books", "Sports", "Home & Garden", "Beauty", "Toys"] | ||||||
|
|
||||||
| # Generate realistic-looking data with some patterns | ||||||
| values = np.random.randn(len(categories), len(months)) * 20 + 50 | ||||||
| # Add seasonal patterns | ||||||
| for month_idx in [5, 6, 7]: # Summer boost | ||||||
| values[:, month_idx] += 15 | ||||||
| for month_idx in [10, 11]: # Holiday boost | ||||||
| values[:, month_idx] += 25 | ||||||
| # Monthly sales growth (%) relative to annual average — diverging around zero | ||||||
|
||||||
| # Monthly sales growth (%) relative to annual average — diverging around zero | |
| # Simulated monthly sales growth (%) with seasonal patterns, diverging around zero |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The implementation header doesn’t follow the repository’s standard 4-line plot header format: it removes the space after the opening triple quotes and the Quality field is left blank ("Quality: /100"), which makes the header invalid/incomplete. Please align this header with the established pattern used by other Plotly implementations (include a numeric quality score and the usual "Created:" field).