Plotnine

•
6
•

Enables AI assistants to generate publication-quality statistical visualizations in Python using the grammar of graphics paradigm.

Plotnine offers a Model Context Protocol (MCP) server that brings the renowned ggplot2 grammar of graphics to Python via the plotnine library. This tool empowers AI-assisted IDEs like Claude-Code, Cursor, and VSCode to create highly customizable, multi-layered statistical graphics through natural language prompts. It supports a wide array of geometry types, flexible theming, statistical transformations, and various data sources, making it ideal for data scientists and analysts seeking to visualize complex data with ease and precision.

主要功能

01Output visualizations in multiple formats: PNG, PDF, SVG with configurable dimensions
02Utilize 20+ geometry types (points, lines, bars, boxplots, violins, etc.)
032 GitHub stars
04Generate multi-layer plots combining various geometries
05Load data from multiple sources: files (CSV, JSON, Parquet, Excel), URLs, or inline JSON
06Apply flexible theming, statistical transformations, and faceting

使用案例

01Creating scatter plots with trend lines from various data sources via natural language prompts
02Generating faceted boxplots or violin plots to compare distributions across categories
03Producing time series line plots with custom themes and date breaks for analysis