Plotnine

plotnine 0.15.7

Simple stacked bar for #TidyTuesday this week about ratings of films inspired by video games ๐ŸŽฅ

๐Ÿ Made with #Plotnine in Python
๐ŸŽจ Colours to highlight high and low ratings
๐Ÿ“Š Aggregating years for clearer chart

Code: https://github.com/nrennie/tidytuesday/tree/main/2026/2026-06-09

#DataViz #PydyTuesday #Python

We're looking at parental leave policies across Europe for #TidyTuesday this week!

๐Ÿ“Š Small multiple area chart showing maximum job protected leave for parents

๐Ÿ› ๏ธ Made with Plotnine in #Python

Code: https://github.com/nrennie/tidytuesday/tree/main/2026/2026-06-02

#DataViz #Plotnine #PydyTuesday

- I wish I could avoid using #pandas altogether, i just can't seem to wrap my head around it (constantly running into issues with indices, loc, iloc, missing data, and more; this is probably also user error though)
- #plotnine is wonderful, basically drop-in replacement for #ggplot2 but it doesn't feel like a mere copy
- still looking for a package for generalized additive mixed models that can do mgcv style estimation but also "normal" glms, and nice summary outputs (tips beyond pyGAM?)

2/n

There is a grammar of graphics implementation (think #ggplot2/ #plotnine) in #typst by @MickaelCanouil

Code: https://github.com/mcanouil/gribouille
Docs: https://m.canouil.dev/gribouille/

So I can dump a csv into a dir and do both writing and plotting in the same file! Mind blown!

GitHub - mcanouil/gribouille: Create elegant graphics with the Grammar of Graphics for Typst.

Create elegant graphics with the Grammar of Graphics for Typst. - mcanouil/gribouille

GitHub

@nrennie

inspired by some of your posts I did a talk at PyData Exter this week on the Grammar of Graphics and plotnine (python implementation)

I focussed on the conceptual strength which leads to a good "API" and compared it with the weaker conceptual framework of matplotlib

#plotnine #dataviz #python

A simple stacked bar chart for #TidyTuesday this week, looking at disparities in the number of male and female tortoises ๐Ÿข

Made with Plotnine in #Python ๐Ÿ“Š

Code: https://github.com/nrennie/tidytuesday/tree/main/2026/2026-03-03

#DataViz #PydyTuesday #Plotnine

What do round brackets with code inside do in Python?

(
something
something_else
)

I've only ever seen round brackets contain parameters to functions.

I'm asking because plotnine code seems to do it, and I wonder if it is some special overloaded operator ?

#python #plotnine #dataviz

๐ŸŽจ๐Ÿ Plotnine Free Workshop!
Master data visualization in Python with the grammar of graphics. Perfect for all levels! ๐Ÿ’ปโœจ
๐Ÿ“… 8 Oct | ๐Ÿ“ PyCon Africa, Johannesburg | ๐ŸŽ‰ FREE
๐ŸŽŸ๏ธ Register for FREE: https://za.pycon.org/tickets
#PyConAfrica #Plotnine #Python #DataScience