Python Graph Gallery


👋 The Python Graph Gallery is a collection of hundreds of charts made with Python.

Graphs are dispatched in about 40 sections following the data-to-viz classification. There are also sections dedicated to more general topics like matplotlib or seaborn.

Each example is accompanied by its corresponding reproducible code along with comprehensive explanations. The gallery offers tutorials that cater to beginners to help kickstart their journey, as well as advanced examples that demonstrate the potency of Python in the realm of data visualization.

❤️ Love the project?

You can contribute on GitHub, share your feedback on LinkedIn, or join 10,000+ subscribers to the newsletter to get updates when new examples are published! 🔥


The biggest list of python chart examples

Within our collection, we cover every chart type imaginable to ensure we fullfil your data visualization needs. To streamline the process of finding your required chart, we meticulously classified all the examples under their respective chart types.

For each chart type, we kick off with a foundational tutorial that introduces its basic structure and utility. After mastering the basics, users can delve into our step-by-step guides on the most elementary customizations, ensuring your chart not only presents data but does so with an individual touch that caters to your specific requirements.


logo of a chart:Violin

Violin

logo of a chart:Density

Density

logo of a chart:Histogram

Histogram

logo of a chart:Box1

Boxplot

logo of a chart:Joyplot

Ridgeline

logo of a chart:Beeswarm2Big

Beeswarm

logo of a chart:ScatterPlot

Scatterplot

logo of a chart:Heatmap

Heatmap

logo of a chart:Correlogram

Correlogram

logo of a chart:BubblePlot

Bubble

logo of a chart:ScatterConnected

Connected Scatter

logo of a chart:2dDensity

2D Density

logo of a chart:Bar

Barplot

logo of a chart:Spider

Spider / Radar

logo of a chart:Wordcloud

Wordcloud

logo of a chart:Parallel1

Parallel

logo of a chart:Lollipop

Lollipop

logo of a chart:CircularBarplot

Circular Barplot

logo of a chart:TableBig

Table

logo of a chart:Tree

Treemap

logo of a chart:Venn

Venn Diagram

logo of a chart:Doughnut

Donut

logo of a chart:Pie

Pie Chart

logo of a chart:Dendrogram

Dendrogram

logo of a chart:CircularPacking

Circular Packing

logo of a chart:Waffle2

Waffle

logo of a chart:Line

Line chart

logo of a chart:Area

Area chart

logo of a chart:StackedArea

Stacked Area

logo of a chart:Stream

Streamgraph

logo of a chart:CandleStick2

Candlestick

Timeseries with python

Timeseries

logo of a chart:Map

Map

logo of a chart:Choropleth

Choropleth

logo of a chart:MapHexbin

Hexbin

logo of a chart:Cartogram

Cartogram

logo of a chart:ConnectedMap

Connection

logo of a chart:BubbleMap

Bubble

logo of a chart:Chord

Chord Diagram

logo of a chart:Network

Network

logo of a chart:Sankey

Sankey

logo of a chart:Arc

Arc Diagram

logo of a chart:Bundle

Edge Bundling

logo of a chart:Colours

Colors

logo of a chart:Interactive

Interactivity

Animation with python

Animation

logo of a chart:Cheat

Cheat sheets

logo of a chart:Bad

Caveats

logo of a chart:3d

3D

logo of a chart:Stats

Statistics


Hunting the most beautiful Python charts

Explore our curated collection of the finest Python charts, handpicked for their superior design and accuracy. Go beyond the defaults with chart examples that are both visually stunning and instructive.

Accompanied by in-depth tutorials, this section will please seasoned professionals aspiring to elevate their craft. Featuring the finest charts on the web, we stay ahead of the curve, showcasing the latest tips, tricks, and advanced techniques in data visualization.


Palette color finder

Selecting optimal chart colors can be challenging and time-intensive. The pypalettes library simplifies this process by providing access to over 2,500 color palettes with a single line of code.

Additionally, the Python Graph Gallery features a dedicated page where you canbrowse all these palettes and preview their appearance on your charts.

Color palette finder demo


Python Graphing with State-of-the-Art Libraries

The python graph gallery relies on the latest and most powerful charting libraries.

Matplotlib logoMatplotlib

The foundation of Python visualization. Offers a wide array of customizable 2D plots and an extensive set of tools for creating intricate figures and charts.

Tutorial

Seaborn logoSeaborn

Built atop Matplotlib, Seaborn elevates data visualization by providing a higher-level interface and stunning default themes.

Tutorial

Pandas logoPandas

Beyond its powerful data manipulation capabilities, Pandas offers convenient plotting methods, enabling users to visualize data directly from DataFrame and Series objects.

Tutorial

Plotly logoPlotly

Delivering interactive and browser-based visualizations, Plotly allows users to craft visually captivating charts, bridging the gap between static graphs and web-based interactivity.

Tutorial

Plotnine logoPlotnine

Plotnine is a Python library for creating statistical visualizations with a simple grammar of graphics interface, inspired by ggplot2 in R.

Tutorial


The Python Graph Gallery complements dataviz-Inspiration.com, a website featuring hundreds of my favorite data visualization projects.

overview of the matplotlib journey landing page

Matplotlib Journey is an interactive online course crafted to transform you into a Matplotlib dataviz expert. It provides a clear, big-picture understanding of how data visualization works in Python, empowering you to grasp any example from the gallery with ease.