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 Embed Interactive Python Charts in a Website
    Python

    How to Embed Interactive Python Charts in a Website

    Export Plotly, Altair, Bokeh and pyecharts charts as HTML fragments, put them in your own page or blog, and choose between fragments and iframes.

    Nov 27, 2026
    embed html plotly altair bokeh pyecharts interactive charts
  • How to Make D3.js Charts From Python
    Python

    How to Make D3.js Charts From Python

    Prepare data in Python and draw it with D3.js: write a standalone HTML file, or build a Jupyter widget with anywidget that sends clicks back to Python.

    Nov 27, 2026
    d3 javascript anywidget jupyter interactive charts
  • pyecharts Tutorial: Apache ECharts in Python
    Python

    pyecharts Tutorial: Apache ECharts in Python

    Build interactive Apache ECharts charts from Python with pyecharts: bar, line, donut and calendar charts, English labels, themes, JavaScript formatters and export.

    Nov 27, 2026
    pyecharts echarts interactive charts javascript
  • 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
  • Bokeh Tutorial: Interactive Charts in Python
    Bokeh

    Bokeh Tutorial: Interactive Charts in Python

    Make your first Bokeh plot, understand figures, glyphs and data sources, save the result as HTML, and find the tutorial for each task.

    Nov 27, 2026
    bokeh guide interactive charts tutorial
  • How to Link Plots in Bokeh: Shared Axes, Selections and Sliders
    Bokeh

    How to Link Plots in Bokeh: Shared Axes, Selections and Sliders

    Pan several Bokeh plots together, select points in one and highlight them in another, share a crosshair, and add a slider that runs in the browser.

    Nov 27, 2026
    bokeh linked plots subplots slider interactive charts
  • How to Add Hover Tooltips in Bokeh
    Bokeh

    How to Add Hover Tooltips in Bokeh

    Show data on hover in Bokeh: pick columns, format numbers and dates, follow the x position on line charts, and write custom HTML tooltips.

    Nov 27, 2026
    bokeh hover tooltip scatter plot
  • How to Make a Bar Chart in Bokeh
    Bokeh

    How to Make a Bar Chart in Bokeh

    Categorical bar charts in Bokeh: vertical, horizontal, sorted, labeled, colored by category, grouped and stacked.

    Nov 27, 2026
    bokeh bar chart grouped bar chart stacked bar chart
  • How to Make a Line Chart in Bokeh
    Bokeh

    How to Make a Line Chart in Bokeh

    Draw single and multiple lines in Bokeh, format a date axis, click the legend to hide lines, and add bands, steps and gaps.

    Nov 27, 2026
    bokeh line chart time series legend
  • How to Plot a Polars DataFrame in Python
    Python

    How to Plot a Polars DataFrame in Python

    Plot Polars DataFrames with df.plot (Altair), hvPlot, Plotly, Seaborn, or Matplotlib

    Nov 27, 2026
    polars altair hvplot plotting line chart bar chart
  • 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
  • «
  • 1 (current)
  • 2
  • 3
  • …
  • 15
  • » Next

Python plotting and visualization demystified

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