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
  • hvPlot: Interactive Plots From pandas in One Line
    Python

    hvPlot: Interactive Plots From pandas in One Line

    Replace df.plot with df.hvplot for interactive charts: lines, bars, histograms, small multiples, overlays, widgets and large datasets.

    Nov 27, 2026
    hvplot holoviews bokeh pandas interactive charts
  • 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
  • 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
  • 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
  • Streamlit File Uploader: Turn a CSV Upload Into a Chart Dashboard
    Streamlit

    Streamlit File Uploader: Turn a CSV Upload Into a Chart Dashboard

    Let people upload a CSV with st.file_uploader, read it with pandas, pick columns and see a chart. Covers bad files, Excel, multiple files, size limits and downloads.

    Nov 26, 2026
    streamlit st.file_uploader csv pandas dashboard
  • 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
  • Ratio Metrics in A/B Tests: The Delta Method in Python
    A/B Testing

    Ratio Metrics in A/B Tests: The Delta Method in Python

    Analyze ratio metrics like click-through rate and revenue per session when you randomize by user. See why the naive test is too confident, compute a delta-method standard error in Python, and check it with a bootstrap and an A/A simulation.

    Nov 26, 2026
    ab testing experimentation ratio metrics delta method click-through rate bootstrap confidence interval pandas
  • Let an LLM Generate Charts from Your DataFrame in Python
    AI

    Let an LLM Generate Charts from Your DataFrame in Python

    Ask a question about a DataFrame in plain English, have an LLM choose the chart, and draw it with Matplotlib. The model returns a validated JSON spec instead of code.

    Nov 25, 2026
    llm claude anthropic tool use text-to-chart matplotlib pandas
  • Novelty and Primacy Effects in A/B Tests: Detect Them in Python
    A/B Testing

    Novelty and Primacy Effects in A/B Tests: Detect Them in Python

    Check whether an A/B test's lift is fading, fit an exponential decay to separate the novelty bump from the lasting effect, and compare new and returning users.

    Nov 25, 2026
    ab testing experimentation novelty effect primacy effect lift over time curve fit scipy pandas
  • How to Make a GitHub-Style Contribution Heatmap in Python
    Python

    How to Make a GitHub-Style Contribution Heatmap in Python

    Recreate GitHub's green contribution graph in Python: daily activity as a weekday-by-week grid of colored squares, built with Matplotlib, calplot, or an interactive Plotly heatmap.

    Nov 25, 2026
    matplotlib plotly calendar heatmap heatmap calplot time series pandas
  • How to Add Error Bars to Pandas DataFrame Plots
    Pandas

    How to Add Error Bars to Pandas DataFrame Plots

    Add error bars to Pandas DataFrame plots with yerr and xerr on df.plot.

    Aug 14, 2026
    pandas plot error bars yerr xerr standard deviation df.plot uncertainty
  • Plot Stacked vs Unstacked Bar Charts in Pandas
    Pandas

    Plot Stacked vs Unstacked Bar Charts in Pandas

    Plot stacked and unstacked bar charts in Pandas with df.plot and the stacked argument.

    Aug 14, 2026
    pandas bar chart stacked unstacked grouped bar df.plot
  • Plot Time Series Data with Custom Frequency in Pandas
    Pandas

    Plot Time Series Data with Custom Frequency in Pandas

    Resample time series data to a custom frequency in Pandas and plot the result with df.plot.

    Aug 14, 2026
    pandas time series resample frequency plotting datetime date_range df.plot
  • How to Switch Pandas Default Plotting Backend to Plotly
    Pandas

    How to Switch Pandas Default Plotting Backend to Plotly

    Switch the Pandas default plotting backend to Plotly so df.plot() returns interactive figures.

    Aug 14, 2026
    pandas plot plotly backend interactive plotting backend pd.options.plotting.backend
  • Plot Multiple Columns on the Same Line Chart in Pandas
    Pandas

    Plot Multiple Columns on the Same Line Chart in Pandas

    Plot multiple DataFrame columns on one line chart in Pandas with df.plot and per-column colors and styles.

    Aug 13, 2026
    pandas plot line chart multiple columns line plot colors matplotlib
  • How to Plot Secondary Y-Axis in Pandas
    Pandas

    How to Plot Secondary Y-Axis in Pandas

    Plot a secondary y-axis in Pandas with df.plot(secondary_y=...) or ax.twinx().

    Aug 13, 2026
    pandas plot secondary y-axis twinx secondary_y two y-axis matplotlib
  • «
  • 1 (current)
  • 2
  • » Next

Python plotting and visualization demystified

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