Skip to content

update(scatter-basic): make plots more visually appealing#4166

Closed
MarkusNeusinger wants to merge 1 commit intomainfrom
implementation/scatter-basic/update
Closed

update(scatter-basic): make plots more visually appealing#4166
MarkusNeusinger wants to merge 1 commit intomainfrom
implementation/scatter-basic/update

Conversation

@MarkusNeusinger
Copy link
Copy Markdown
Owner

Summary

Updated all 9 implementations for scatter-basic to be more visually appealing and less boring while keeping the basic scatter format (no trendlines).

Libraries: matplotlib, seaborn, plotly, bokeh, altair, plotnine, pygal, highcharts, letsplot

Per-Library Changes

matplotlib

  • Temperature vs Iced Drinks Sold with humidity colorbar (viridis)
  • Edge-highlighted markers with color gradient

seaborn

  • Palmer Penguins real dataset (bill length vs body mass)
  • 3 species with different markers and colorblind-safe palette

plotly

  • Coffee intake vs afternoon productivity
  • Viridis color gradient by productivity score

bokeh

  • Coffee shop sales data by season (4 categories)
  • Cups sold vs daily revenue with seasonal colors

altair

  • Temperature vs ice cream sales in a coastal town
  • Rainbow color gradient by temperature with subtitle

plotnine

  • Coffee growing altitude vs flavor score
  • 3 varieties (Arabica, Robusta, Liberica) with pastel palette

pygal

  • Temperature vs iced drinks sold
  • Clean single-series with improved dot styling

highcharts

  • Temperature vs iced coffee sales
  • Two series: Cool Days / Warm Days (blue/gold)

letsplot

  • Coffee intake vs productivity score
  • Light blue with minimal theme

Test Plan

  • Preview images uploaded to GCS staging
  • Implementation files pass ruff format/check
  • Metadata YAML updated with current versions
  • Automated review triggered

Generated with Claude Code /update command

Updated libraries: matplotlib, seaborn, plotly, bokeh, altair, plotnine, pygal, highcharts, letsplot
All implementations refreshed with more interesting data contexts, better color palettes,
and refined styling while keeping basic scatter format (no trendlines).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings February 10, 2026 21:12
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request updates all 9 implementations of the scatter-basic plot specification to make them more visually appealing while maintaining their basic scatter plot nature. The changes include updated datasets with more interesting real-world contexts (coffee consumption, weather patterns, penguins data), improved color schemes, and enhanced styling. The metadata files are updated to reflect Python 3.14.2, updated library versions, and staging preview URLs. Quality scores are set to null pending automated review.

Changes:

  • Updated all 9 scatter-basic implementations (matplotlib, seaborn, plotly, bokeh, altair, plotnine, pygal, highcharts, letsplot) with more engaging datasets and improved visual styling
  • Updated metadata YAML files to Python 3.14.2 and current library versions, with staging preview URLs
  • Implementations maintain KISS principle with clean, readable code following established patterns

Reviewed changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
plots/scatter-basic/implementations/matplotlib.py Temperature vs iced drinks with humidity colorbar (viridis), edge-highlighted markers with gradient coloring
plots/scatter-basic/implementations/seaborn.py Palmer Penguins dataset (bill length vs body mass) with 3 species using different markers and colorblind-safe palette
plots/scatter-basic/implementations/plotly.py Coffee intake vs afternoon productivity with viridis color gradient and deliberate outliers
plots/scatter-basic/implementations/bokeh.py Coffee shop sales by season (4 categories) with seasonal colors and improved legend
plots/scatter-basic/implementations/altair.py Temperature vs ice cream sales with rainbow color gradient and subtitle
plots/scatter-basic/implementations/plotnine.py Coffee growing altitude vs flavor score with 3 varieties and pastel palette
plots/scatter-basic/implementations/pygal.py Temperature vs iced drinks with clean single-series and improved dot styling
plots/scatter-basic/implementations/highcharts.py Temperature vs iced coffee with two series (Cool Days/Warm Days) in blue/gold colors
plots/scatter-basic/implementations/letsplot.py Coffee intake vs productivity score with light blue theme and minimal styling
plots/scatter-basic/metadata/matplotlib.yaml Updated Python 3.14.2, staging URLs, null quality score pending review
plots/scatter-basic/metadata/seaborn.yaml Updated Python 3.14.2, staging URLs, null quality score pending review
plots/scatter-basic/metadata/plotly.yaml Updated Python 3.14.2, plotly 6.5.2, staging URLs, null quality score
plots/scatter-basic/metadata/bokeh.yaml Updated Python 3.14.2, bokeh 3.8.2, staging URLs, null quality score
plots/scatter-basic/metadata/altair.yaml Updated Python 3.14.2, staging URLs, null quality score pending review
plots/scatter-basic/metadata/plotnine.yaml Updated Python 3.14.2, plotnine 0.15.3, staging URLs, null quality score
plots/scatter-basic/metadata/pygal.yaml Updated Python 3.14.2, staging URLs, null quality score pending review
plots/scatter-basic/metadata/highcharts.yaml Updated Python 3.14.2, highcharts 1.10.3, staging URLs, null quality score
plots/scatter-basic/metadata/letsplot.yaml Updated Python 3.14.2, letsplot 4.8.2, staging URLs, null quality score

Comment on lines +9 to 25
from plotnine import (
aes,
element_blank,
element_line,
element_rect,
element_text,
geom_point,
ggplot,
guides,
labs,
scale_color_manual,
scale_size_continuous,
theme,
theme_minimal,
)


Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The module 'plotnine' imports itself.

Suggested change
from plotnine import (
aes,
element_blank,
element_line,
element_rect,
element_text,
geom_point,
ggplot,
guides,
labs,
scale_color_manual,
scale_size_continuous,
theme,
theme_minimal,
)
import importlib
p9 = importlib.import_module("plotnine")
aes = p9.aes
element_blank = p9.element_blank
element_line = p9.element_line
element_rect = p9.element_rect
element_text = p9.element_text
geom_point = p9.geom_point
ggplot = p9.ggplot
guides = p9.guides
labs = p9.labs
scale_color_manual = p9.scale_color_manual
scale_size_continuous = p9.scale_size_continuous
theme = p9.theme
theme_minimal = p9.theme_minimal

Copilot uses AI. Check for mistakes.
@MarkusNeusinger MarkusNeusinger deleted the implementation/scatter-basic/update branch March 24, 2026 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants