Python Charts
    • Matplotlib 87 The core library, with full control over every element
    • Plotly 40 Interactive charts for the web and notebooks
    • Seaborn 29 Statistical plots straight from DataFrames
    • Pandas 12 Quick charts with df.plot()
    • Altair 11 Declarative charts built on Vega-Lite
    • Bokeh 5 Interactive plots with linked tools and widgets
    • Plotnine 8 ggplot2's grammar of graphics in Python
    • Streamlit 12 Charts inside Streamlit data apps
    • A/B Testing 15 Sample size, analysis and sequential tests
    • Machine Learning 26 Evaluate and explain scikit-learn models
    • Causal Inference 16 Diff-in-diff, synthetic control, IV and more
    • AI 4 Use LLMs to build charts from your data
  • Python
  • Chart Gallery
  • All Posts
  • How to Add a Table to a Matplotlib Plot
    Matplotlib

    How to Add a Table to a Matplotlib Plot

    Put a data table under or beside a Matplotlib chart with ax.table(), then control its size, fonts, colors, and column widths.

    Nov 27, 2026
    matplotlib table pandas annotation
  • Interactive Matplotlib Plots in Jupyter With %matplotlib widget
    Matplotlib

    Interactive Matplotlib Plots in Jupyter With %matplotlib widget

    Zoom, pan, add sliders, and respond to clicks on Matplotlib figures in JupyterLab, Notebook, VS Code, and Colab with ipympl.

    Nov 27, 2026
    matplotlib jupyter ipympl interactive slider
  • Dark Mode Charts in Matplotlib
    Matplotlib

    Dark Mode Charts in Matplotlib

    Make Matplotlib charts for dark slides, dashboards, and websites with dark_background, a custom dark theme, and light and dark exports from one function.

    Nov 27, 2026
    matplotlib dark mode dark_background style sheets rcparams colors
  • Quiver and Stream Plots in Matplotlib
    Matplotlib

    Quiver and Stream Plots in Matplotlib

    Plot vector fields in Matplotlib: arrows on a grid with ax.quiver() and continuous flow lines with ax.streamplot().

    Nov 27, 2026
    matplotlib quiver streamplot vector field
  • Hatch Patterns on Bar Charts and Fills in Matplotlib
    Matplotlib

    Hatch Patterns on Bar Charts and Fills in Matplotlib

    Add stripes, crosses, and dots to bars, areas, and pie wedges with the hatch argument, and control the pattern's color, density, and line width.

    Nov 27, 2026
    matplotlib hatch bar chart fill_between styling
  • Step Plots, Stairs, and Stem Plots in Matplotlib
    Matplotlib

    Step Plots, Stairs, and Stem Plots in Matplotlib

    Draw values that hold and then jump with ax.step() and ax.stairs(), and show discrete samples with ax.stem().

    Nov 27, 2026
    matplotlib step plot stem plot line plot
  • Hexbin Plots and 2D Histograms in Matplotlib
    Matplotlib

    Hexbin Plots and 2D Histograms in Matplotlib

    Show the density of thousands of points with ax.hexbin() and ax.hist2d(), with log color scales, marginal histograms, and per-bin averages.

    Nov 27, 2026
    matplotlib hexbin 2d histogram histogram density
  • Inset and Zoomed Axes in Matplotlib
    Matplotlib

    Inset and Zoomed Axes in Matplotlib

    Add a small chart inside a Matplotlib chart with inset_axes(), zoom into one region, and draw connector lines with indicate_inset_zoom().

    Nov 27, 2026
    matplotlib inset axes zoom layout annotation
  • How to Make a Broken Axis Plot in Matplotlib
    Matplotlib

    How to Make a Broken Axis Plot in Matplotlib

    Skip an empty range on the y-axis or x-axis by splitting a Matplotlib chart into two subplots with different limits and drawing the break marks.

    Nov 27, 2026
    matplotlib broken axis axis limits subplots
  • Set the Aspect Ratio and Equal Axes in Matplotlib
    Matplotlib

    Set the Aspect Ratio and Equal Axes in Matplotlib

    Use set_aspect() to give x and y the same scale, set_box_aspect() to fix the shape of the plot, and know which one you need.

    Nov 27, 2026
    matplotlib aspect ratio axis limits layout
  • Matplotlib Tutorial: A Guide from First Plot to Polished Chart
    Matplotlib

    Matplotlib Tutorial: A Guide from First Plot to Polished Chart

    A map of the Matplotlib tutorials: the basics, chart types, axes and ticks, legends and text, layouts, styling, and saving figures.

    Nov 27, 2026
    matplotlib guide line plot bar chart subplots legend
  • How to Make Sparklines and Small Multiples in Python
    Matplotlib

    How to Make Sparklines and Small Multiples in Python

    Draw sparklines with Matplotlib: a stack of tiny line charts with last values, min and max markers, reference bands, a grid of small multiples and inline PNGs for HTML tables.

    Nov 27, 2026
    matplotlib pandas sparklines small multiples time series
  • How to Make a Chord Diagram in Python with pyCirclize
    Python

    How to Make a Chord Diagram in Python with pyCirclize

    Turn a from-to table into a chord diagram with pyCirclize, add direction arrows, set colors, highlight one group and know when a heatmap is clearer.

    Nov 27, 2026
    matplotlib pycirclize chord diagram flow network graph
  • Marimekko and Mosaic Charts in Python
    Matplotlib

    Marimekko and Mosaic Charts in Python

    Build a Marimekko chart with variable-width Matplotlib bars, label it, and make mosaic plots of categorical data with statsmodels.

    Nov 27, 2026
    matplotlib statsmodels marimekko chart mosaic plot stacked bar chart
  • How to Make a Forest Plot in Python with Matplotlib
    Python

    How to Make a Forest Plot in Python with Matplotlib

    Draw a forest plot of odds ratios with Matplotlib, pool studies with fixed and random effects, and add the table columns journals expect.

    Nov 27, 2026
    matplotlib forest plot meta-analysis odds ratio confidence interval
  • How to Make a Bland-Altman Plot in Python
    Python

    How to Make a Bland-Altman Plot in Python

    Compare two measurement methods with a Bland-Altman plot: mean difference, limits of agreement, confidence intervals and what to do when the spread grows with size.

    Nov 27, 2026
    matplotlib statsmodels bland-altman plot method comparison agreement
  • How to Make a Bullet Chart in Python with Matplotlib
    Matplotlib

    How to Make a Bullet Chart in Python with Matplotlib

    Draw bullet charts with layered Matplotlib bars to compare a value with a target and performance bands, for one KPI or a whole stack.

    Nov 27, 2026
    matplotlib bullet chart bar chart kpi dashboard
  • How to Make a Stream Graph in Python with Matplotlib
    Matplotlib

    How to Make a Stream Graph in Python with Matplotlib

    Draw stream graphs with stackplot, compare the four baseline options, smooth the layers and label them directly.

    Nov 27, 2026
    matplotlib streamgraph area chart stackplot time series
  • How to Make a Bubble Chart in Matplotlib
    Matplotlib

    How to Make a Bubble Chart in Matplotlib

    Build a bubble chart with ax.scatter, scale bubble areas correctly, color by group, add a size legend and label the points.

    Nov 27, 2026
    matplotlib bubble chart scatter plot legend
  • How to Draw a Causal DAG in Python with NetworkX
    Causal Inference

    How to Draw a Causal DAG in Python with NetworkX

    Draw clean causal diagrams with NetworkX and Matplotlib, list backdoor paths, choose adjustment variables, and see what controlling for a collider does.

    Nov 27, 2026
    causal inference causal dag directed acyclic graph confounding collider networkx matplotlib
  • «
  • 1 (current)
  • 2
  • 3
  • …
  • 7
  • » Next

Python plotting and visualization demystified

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