Skip to content

Add ggplot-python materials folder - #980

Merged
realpython-bot merged 2 commits into
masterfrom
maintenance/ggplot-python-20261202
Dec 2, 2026
Merged

realpython-bot merged 2 commits into
masterfrom
maintenance/ggplot-python-20261202

Conversation

@realpython-bot

Copy link
Copy Markdown
Collaborator

Adds the companion code for Using ggplot in Python: Visualizing Data With plotnine, which had no materials folder.

  • One script per tutorial section, mirroring the code in the update draft (https://realpython.com/pbjt/blog/post/2745/change/), including this cycle's fixes: facet_grid(rows="year", cols="class") instead of the removed facets= keyword, and the scale_x_timedelta() example mapping date - date.min().
  • requirements.txt pins match the article's dependencies field (plotnine 0.15.9, jupyter 1.1.1). README states the Python 3.10 floor.

Maintenance card: https://trello.com/c/PNYr4Lt4

Verified: fresh Python 3.14 venv on the pins, every script run with MPLBACKEND=Agg (all exit 0; dataset echoes match the article; export.py writes myplot.png). ruff format --check, ruff check (0.14.1), and dircheck.py pass.

🤖 Generated with Claude Code

@realpython-bot
realpython-bot merged commit e855545 into master Dec 2, 2026
1 check passed
@realpython-bot
realpython-bot deleted the maintenance/ggplot-python-20261202 branch December 2, 2026 07:10
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.

1 participant