Python Charts

    • Matplotlib 76 The core library, with full control over every element
    • Plotly 39 Interactive charts for the web and notebooks
    • Seaborn 28 Statistical plots straight from DataFrames
    • Pandas 12 Quick charts with df.plot()
    • Altair 5 Declarative charts built on Vega-Lite
    • Plotnine 3 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 14 Evaluate and explain scikit-learn models
    • Causal Inference 16 Diff-in-diff, synthetic control, IV and more
    • AI 1 Use LLMs to build charts from your data
  • Python
  • All Posts
  • Great Tables in Python: Make Publication-Quality Tables
    Python

    Great Tables in Python: Make Publication-Quality Tables

    Turn a DataFrame into a polished table with Great Tables: titles, number formats, column groups, colored cells, inline sparklines and PNG export.

    Nov 27, 2026
    great tables table pandas formatting sparklines
  • 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 Beeswarm Plot in Python with Seaborn
    Seaborn

    How to Make a Beeswarm Plot in Python with Seaborn

    Plot every data point without overlap using sns.swarmplot, fix the "points cannot be placed" warning, and combine beeswarms with groups, color and summaries.

    Nov 27, 2026
    seaborn beeswarm plot swarm plot strip plot distribution
  • 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
  • Marketing Mix Modeling in Python with PyMC-Marketing
    Causal Inference

    Marketing Mix Modeling in Python with PyMC-Marketing

    Fit a Bayesian marketing mix model with PyMC-Marketing, check it, and chart channel contributions, return on ad spend, response curves and a reallocated budget.

    Nov 27, 2026
    causal inference marketing mix modeling pymc-marketing bayesian adstock saturation campaign measurement
  • Geo-Lift Testing in Python with Synthetic Control
    Causal Inference

    Geo-Lift Testing in Python with Synthetic Control

    Measure a regional ad campaign with a geo-lift test in Python: build a synthetic control, estimate lift and return on ad spend, run placebo tests, and plan test length with a power analysis.

    Nov 27, 2026
    causal inference geo experiment geo-lift synthetic control power analysis campaign measurement scipy
  • DoWhy Tutorial: Causal Inference in Python from DAG to Estimate
    Causal Inference

    DoWhy Tutorial: Causal Inference in Python from DAG to Estimate

    Use DoWhy's four steps (model, identify, estimate, refute) on a worked example, chart the results, and learn what the refutation tests can't catch.

    Nov 27, 2026
    causal inference dowhy causal dag refutation sensitivity analysis confounding networkx
  • 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
  • Uplift Modeling in Python: T-Learner and Qini Curve
    Causal Inference

    Uplift Modeling in Python: T-Learner and Qini Curve

    Find the customers a campaign actually persuades: build T-, S- and class-transformation uplift models with scikit-learn and evaluate them with a Qini curve.

    Nov 27, 2026
    causal inference uplift modeling qini curve heterogeneous treatment effects campaign measurement scikit-learn matplotlib
  • Causal Forests in Python: Estimate and Plot CATE with EconML
    Causal Inference

    Causal Forests in Python: Estimate and Plot CATE with EconML

    Estimate how a treatment effect differs from customer to customer with a causal forest in EconML, then plot the effects, check them, and turn them into a targeting rule.

    Nov 27, 2026
    causal inference causal forest cate heterogeneous treatment effects econml random forest matplotlib
  • Pandas scatter_matrix: Plot Every Pair of Columns
    Pandas

    Pandas scatter_matrix: Plot Every Pair of Columns

    Compare all numeric columns at once with pandas scatter_matrix: KDE diagonals, colors by category, readable labels, correlations, and a lower-triangle layout.

    Nov 27, 2026
    pandas scatter_matrix scatter-plot pairplot correlation exploratory analysis
  • How to Plot a Rolling Average in Pandas
    Pandas

    How to Plot a Rolling Average in Pandas

    Plot a moving average with rolling().mean() and ewm(): window sizes, centered and time-based windows, gaps, rolling median, standard deviation bands, and groups.

    Nov 27, 2026
    pandas rolling average moving average ewm time series line chart
  • How to Plot GroupBy and Pivot Table Results in Pandas
    Pandas

    How to Plot GroupBy and Pivot Table Results in Pandas

    Turn groupby() and pivot_table() results into bar, line, and small multiple charts, using unstack(), ordered categories, error bars, and monthly dates.

    Nov 27, 2026
    pandas groupby pivot_table bar chart unstack df.plot
  • Plot Histograms and Box Plots from a Pandas DataFrame
    Pandas

    Plot Histograms and Box Plots from a Pandas DataFrame

    Draw histograms and box plots straight from a DataFrame with df.hist(), df.plot.hist(), df.boxplot(), and df.plot.box(), including one chart per group.

    Nov 27, 2026
    pandas histogram boxplot df.hist df.plot distribution
  • «
  • 1 (current)
  • 2
  • 3
  • …
  • 13
  • » Next

Python plotting and visualization demystified

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