Python Charts

    • Matplotlib 65 The core library, with full control over every element
    • Plotly 27 Interactive charts for the web and notebooks
    • Seaborn 17 Statistical plots straight from DataFrames
    • Pandas 8 Quick charts with df.plot()
    • Altair 5 Declarative charts built on Vega-Lite
    • Plotnine 3 ggplot2's grammar of graphics in Python
    • Streamlit 1 Charts inside Streamlit data apps
    • A/B Testing 15 Sample size, analysis and sequential tests
    • Machine Learning 14 Evaluate and explain scikit-learn models
    • Causal Inference 10 Diff-in-diff, synthetic control, IV and more
    • AI 1 Use LLMs to build charts from your data
  • Python
  • All Posts
  • How to Make a Bump Chart in Matplotlib
    Matplotlib

    How to Make a Bump Chart in Matplotlib

    Make a bump chart in Matplotlib to show how rankings change over time, with smooth curves, highlighting, and top-N entries and exits.

    Nov 26, 2026
    matplotlib bump chart ranking line plot labeling time series
  • How to Make a Treemap in Matplotlib with Squarify
    Python

    How to Make a Treemap in Matplotlib with Squarify

    Draw treemaps in Matplotlib with squarify: labels and values, color by a second measure, and a nested treemap built from rectangles.

    Nov 26, 2026
    python matplotlib treemap squarify hierarchical
  • How to Make a Raincloud Plot in Python
    Python

    How to Make a Raincloud Plot in Python

    Build raincloud plots in Matplotlib from a half violin, a box plot, and jittered points, or use the ptitprince package.

    Nov 26, 2026
    python matplotlib raincloud plot violin plot boxplot distribution
  • How to Plot ACF and PACF in Python with statsmodels
    Python

    How to Plot ACF and PACF in Python with statsmodels

    Plot autocorrelation and partial autocorrelation with statsmodels, read the patterns, handle trends and seasonality, and customize the charts.

    Nov 26, 2026
    python statsmodels matplotlib autocorrelation acf pacf time series
  • How to Plot a Dendrogram in Python with SciPy
    Python

    How to Plot a Dendrogram in Python with SciPy

    Plot a dendrogram in Python with SciPy, cut it into clusters, choose a linkage method, and draw a Seaborn clustermap.

    Nov 26, 2026
    python scipy seaborn dendrogram clustering clustermap
  • How to Make Interactive Maps in Python with Folium
    Python

    How to Make Interactive Maps in Python with Folium

    Build interactive Leaflet maps in Python with Folium: markers, popups, clusters, heatmaps, choropleths, and layer controls.

    Nov 26, 2026
    python folium map geospatial interactive choropleth heatmap
  • Lollipop Charts and Cleveland Dot Plots in Matplotlib
    Matplotlib

    Lollipop Charts and Cleveland Dot Plots in Matplotlib

    Make horizontal and vertical lollipop charts in Matplotlib with hlines() and stem(), plus Cleveland dot plots for comparing several series.

    Nov 26, 2026
    matplotlib lollipop chart dot plot stem plot bar chart
  • How to Make a Venn Diagram in Python (and When to Use an UpSet Plot)
    Python

    How to Make a Venn Diagram in Python (and When to Use an UpSet Plot)

    Draw two and three set Venn diagrams with matplotlib-venn, and build an UpSet plot in Matplotlib for four or more sets.

    Nov 26, 2026
    python matplotlib venn diagram matplotlib-venn upset plot sets
  • How to Make a Q-Q Plot in Python
    Python

    How to Make a Q-Q Plot in Python

    Make a Q-Q plot in Python with scipy or statsmodels, and learn to read skew, heavy tails, and outliers from its shape.

    Nov 26, 2026
    python matplotlib q-q plot scipy statsmodels distribution
  • How to Make a Choropleth Map in Python with GeoPandas
    Python

    How to Make a Choropleth Map in Python with GeoPandas

    Make choropleth maps in Python with GeoPandas using real Census and Natural Earth data.

    Nov 26, 2026
    python matplotlib choropleth geopandas map geospatial
  • How to Plot a Network Graph in Python with NetworkX
    Python

    How to Plot a Network Graph in Python with NetworkX

    Draw network graphs in Python with NetworkX and Matplotlib, then make them interactive with pyvis.

    Nov 26, 2026
    python matplotlib network graph networkx pyvis interactive
  • How to Make a Word Cloud in Python
    Python

    How to Make a Word Cloud in Python

    Make a word cloud in Python with the wordcloud library, then control stopwords, shape, colors, and word frequencies.

    Nov 26, 2026
    python word cloud wordcloud matplotlib text data
  • Matplotlib Cheat Sheet: Plot Types and Common Commands
    Matplotlib

    Matplotlib Cheat Sheet: Plot Types and Common Commands

    A one-page Matplotlib cheat sheet to download, with code for twelve chart types and the commands for titles, axes, legends, layouts, and saving.

    Nov 26, 2026
    matplotlib cheat-sheet plot types subplots savefig python
  • Matplotlib Axis Labels: Font Size, Padding, Position, and Rotation
    Matplotlib

    Matplotlib Axis Labels: Font Size, Padding, Position, and Rotation

    Add x and y axis labels in Matplotlib and control their font size, spacing, position, and rotation, including shared labels for subplots.

    Nov 26, 2026
    matplotlib axis labels xlabel ylabel labelpad font size
  • Area Charts and Stacked Area Charts in Matplotlib
    Matplotlib

    Area Charts and Stacked Area Charts in Matplotlib

    Make area charts with fill_between and stacked area charts with stackplot, show percentages, label the layers, and draw stream graphs.

    Nov 26, 2026
    matplotlib area chart stackplot stacked-area fill_between time-series
  • Sorted Horizontal Bar Charts with Labels in Matplotlib
    Matplotlib

    Sorted Horizontal Bar Charts with Labels in Matplotlib

    Make a horizontal bar chart with barh, sort it so the largest bar is on top, add value labels, and handle long names and negative values.

    Nov 26, 2026
    matplotlib bar chart barh horizontal bar bar-labels sorting
  • Matplotlib Contour Plots with contour and contourf
    Matplotlib

    Matplotlib Contour Plots with contour and contourf

    Draw contour lines and filled contour plots in Matplotlib, choose levels, label the lines, mark zero, and contour scattered data.

    Nov 26, 2026
    matplotlib contour-plot contourf colormap colorbar meshgrid
  • How to Style a Pandas DataFrame with df.style
    Pandas

    How to Style a Pandas DataFrame with df.style

    Format and color pandas DataFrames with df.style, including number formats, background gradients, highlighting max and min, row rules, data bars, CSS, and export.

    Nov 26, 2026
    pandas df.style styler conditional-formatting background_gradient tables
  • Plotly Express Line Charts with px.line
    Plotly

    Plotly Express Line Charts with px.line

    Draw line charts with px.line, plot multiple lines from long or wide data, add markers and dashes, label line ends, facet into small multiples, and fix zigzags and gaps.

    Nov 26, 2026
    plotly plotly express px line-chart multiple-lines time-series faceting
  • Plotly Express Bar Charts: Grouped, Stacked, and Labeled
    Plotly

    Plotly Express Bar Charts: Grouped, Stacked, and Labeled

    Build bar charts with px.bar, including grouped, stacked, 100% stacked, horizontal and sorted bars, text labels, aggregated data, and color by value.

    Nov 26, 2026
    plotly plotly express px bar-chart grouped-bar-chart stacked-bar-chart
  • «
  • 1 (current)
  • 2
  • 3
  • …
  • 10
  • » Next

Python plotting and visualization demystified

© 2026 PythonCharts.com. All rights reserved.
  • About
  • Credits
  • Privacy Policy