Python Chart Gallery
Pick a chart by what you want to show, then follow the link under it to a Python tutorial with the code. The gallery covers 110 kinds of charts, plots and tables made with Matplotlib, Seaborn, Plotly, pandas and other libraries. For help by library, see the Matplotlib, Seaborn, Plotly and Bokeh tutorials.
Comparing Categories
Compare values, ranks or targets across groups.
-
Bar chart
Matplotlib · Plotly · Seaborn · Bokeh
-
Grouped bar chart
Matplotlib · Seaborn · Plotly
-
Stacked bar chart
Matplotlib · pandas · Python
-
Count plot
-
Lollipop and dot plot
-
Dumbbell plot
-
Slope chart
-
Bump chart
-
Radar chart
-
Bullet chart
-
Pareto chart
-
Waterfall chart
-
Population pyramid
-
Broken axis chart
Change Over Time
Show trends, cycles and schedules.
-
Line chart
Matplotlib · Seaborn · Plotly · pandas · Bokeh
-
Line chart with confidence band
-
Area chart
-
Stream graph
-
Rolling average
-
Dual y-axis chart
-
Step and stem plot
-
Candlestick chart
-
Range slider time series
-
Gantt chart
-
Calendar heatmap
-
Sparklines
-
Animated bubble chart
-
ACF and PACF plot
Distributions
See the shape, spread and outliers of your data.
-
Histogram
Matplotlib · Seaborn · Plotly · pandas
-
Density plot (KDE)
-
Box plot
Matplotlib · Plotly · pandas
-
Violin plot
-
Beeswarm plot
Seaborn · With box plot · D3
-
Raincloud plot
-
Ridge plot
-
Cumulative distribution (CDF)
-
Q-Q plot
Relationships and Correlation
Show how variables move together.
-
Scatter plot
Matplotlib · Altair · Plotnine
-
Bubble chart
-
Regression plot
-
Joint plot
-
Pair plot
-
Heatmap
Matplotlib · Seaborn · Plotly
-
Correlation heatmap
-
Clustermap
-
Dendrogram
-
Contour plot
-
Hexbin and 2D histogram
-
Quiver and stream plot
-
Parallel coordinates
-
Polar scatter plot
-
Millions of points
-
Network graph
Parts of a Whole and Sets
Break a total into its pieces, or show overlaps.
-
Pie chart
-
Donut chart
-
Treemap
-
Sunburst chart
-
Waffle chart
-
Marimekko and mosaic chart
-
Venn diagram and UpSet plot
-
Word cloud
Flows, Processes, and Trees
Trace movement between stages or the steps in a decision.
Maps
Put data on a map, either static or interactive.
3D, Layouts, Images, and Animation
Add a third dimension, arrange panels, display arrays or show motion.
Uncertainty and Experiments
Report estimates with their uncertainty, and read A/B tests.
-
Error bars
-
Forest plot
-
Bland-Altman plot
-
A/B test lift chart
-
Power curve
-
Bootstrap distribution
-
Bayesian posterior plot
-
Bandit regret curve
Machine Learning
Evaluate and explain models.
-
ROC curve
-
Precision-recall curve
-
Confusion matrix
-
Calibration curve
-
Learning curve
-
Residual plot
-
Feature importance
-
SHAP plot
-
Partial dependence plot
-
Decision boundary
-
Elbow and silhouette plot
-
PCA biplot
-
t-SNE and UMAP plot
-
Qini curve
Causal Inference
Show what an intervention changed.
-
Parallel trends plot
-
Event study plot
-
Synthetic control plot
-
Regression discontinuity plot
-
Interrupted time series
-
Marketing mix contributions
Tables and Dashboards
Present numbers as a formatted table, KPI card or app.




















