Grammar of Graphics in Python with Plotnine
summary
plotnine implements the Grammar of Graphics in Python and shows concrete examples: a Palmer Penguins subset visualized with layered geoms to build a C‑plot combining box/violin/points, using palmer penguins, jitter + 0.5 opacity to reduce overplotting, position dodge at 90% and mean segments colored by group. It demonstrates color math to darken line colors by 0.25 darken factor, computes group counts and places text below minima, and builds a working guitar fretboard scale with 22 frets using a custom trans/scale (misani) that spaces frets nonlinearly.
AI-written summary · about
chapters (6)
- 0:00Introduction to plot9
- 2:03Grammar of graphics
- 3:41Visualizing penguin data
- 6:35Advanced plotting techniques
- 10:35Finalizing the plot
- 15:28Custom scales example
related talks
01h 26mTurning DataFrames into Pretty Pictures with Plotnine
38mBuilding a Grammar for Statistical Graphics in Clojure
30mFrom plotting to chart porn - Creating slick charts with Matplotlib
19mPython Rgonomics
59mPlotting with Matplotlib; Telling Static, Animated, & Interactive Stories
34mPractical Techniques for Polished Visuals with Plotnine
13mggsql: A grammar of graphics for SQL
31mPainting with Python
