{"categories":[{"label":"Visualization","url":"https://skillfed.io/packages/category/scientific-engineering-visualization"}],"enrichment":{"capability":"plotnine implements a grammar of graphics for Python, letting you build plots by explicitly mapping dataframe variables to visual properties like position, color, and size, then composing them with operators.","skillfed_tags":["data-visualization","grammar-of-graphics","ggplot2-inspired"],"use_cases":["Build exploratory scatter plots with color-coded groups and trend lines, composing layers incrementally without rewriting the whole plot.","Create publication-ready multi-panel plots using faceting to compare distributions or relationships across categorical subsets of data.","Apply consistent themes and styling to a suite of plots by defining a theme once and reusing it across multiple visualizations.","Perform statistical visualization (smoothing, confidence intervals, density estimation) by combining geoms with stats like stat_smooth.","Prototype complex plots interactively in notebooks, adding and removing layers to refine the visualization without switching tools."],"what_it_does":"plotnine is a Python implementation of the grammar of graphics, modeled on R's ggplot2. It lets you build plots declaratively by mapping variables from a pandas DataFrame to visual properties (axes, colors, sizes, shapes) and then layering geometric objects, statistics, and themes using the `+` operator. Each layer is added incrementally, making it easy to build complex visualizations step by step while keeping simple plots simple.\n\nThe package depends on matplotlib for rendering, pandas for data handling, and scipy and statsmodels for statistical transformations. It works across macOS, Windows, and Unix, and supports current Python versions (3.10\u20133.13). The API mirrors ggplot2 closely, so R users can transfer their plotting intuition directly, and the documentation points to ggplot2 references where plotnine's coverage is incomplete.","worth_installing":"Yes. plotnine is actively maintained, has no known vulnerabilities, installs with low friction, and offers a genuinely different (and for many users, more intuitive) approach to plotting than matplotlib's imperative style. It's well-suited for exploratory analysis and publication graphics if you prefer declarative composition. The MIT license is unrestricted. Install it if you work with pandas DataFrames and want to think about plots as layered grammars rather than imperative drawing commands."},"id":"plotnine","links":{"html":"https://skillfed.io/packages/plotnine","md":"https://skillfed.io/packages/plotnine.md","pypi":"https://pypi.org/project/plotnine/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-14","license_spdx":null,"license_treatment":"permissive","name":"plotnine","python_support":"supports_current","summary":"A Grammar of Graphics for Python"},"popularity":{"monthly_downloads":3416684,"position":2629,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.15.8"}
