Python charting libraries

Updated Nov 2026

Python charting libraries turn data in lists, arrays, or DataFrames into line, bar, scatter, and other charts. An interactive renderer outputs HTML and JavaScript with zoom and hover instead of a static image. These libraries let analysts, notebooks, and dashboards present data as figures.

Popularity

Matplotlib has the most monthly downloads in this comparison, at 188.1M.

LibraryMonthly downloadsStarsLast releaseLicense
Matplotlib
196.4M
23.5KSep 2026Matplotlib
Plotly
60.0M
18.9KSep 2026MIT
Altair
43.5M
10.5KSep 2026BSD-3-Clause
seaborn
31.6M
14.1KJan 2024BSD-3-Clause
Bokeh
6.5M
20.5KNov 2026BSD-3-Clause
plotnine
1.7M
4.8KNov 2026MIT
PyQtGraph
1.0M
4.4KNov 2025MIT
pyecharts
823.9K
15.8KFeb 2026MIT
Downloads: PyPI, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

Libraries and code examples

Creates static, animated, and interactive visualizations.

Downloads / mo
196.4M
Stars
23.5K
Last release
3.11.2
License
Matplotlib

Strengths

  • Creates static and interactive figures. Use the same plotting library for image files and interactive windows.
  • Exports publication image formats. Save figures as PNG, PDF, or SVG.

Limitations

  • Interactivity needs an appropriate backend. Choose an interactive backend for live windows instead of image-only output.

Quickstart

From pyplot.html
$ pip install matplotlib
import matplotlib.pyplot as plt
plt.plot([1, 2, 3], [1, 4, 9])
plt.show()

Matplotlib examples

From open-source projects on GitHub

Creates interactive browser-based charts from Python.

Downloads / mo
60.0M
Stars
18.9K
Last release
7.1.0
License
MIT

Strengths

  • Shares interactive HTML files. Keep hover, zoom, and trace controls when sharing browser-readable charts.
  • Fits Dash applications. Embed Python figures in analytical web applications built with Dash.

Limitations

  • Static export needs browser dependencies. Install Kaleido and compatible Chrome or Chromium to produce image files.

Quickstart

From json.md
$ pip install plotly
import plotly.express as px
fig = px.bar(x=["a", "b", "c"], y=[1, 3, 2])
fig.show()

Plotly examples

From open-source projects on GitHub

Defines declarative statistical charts using Vega and Vega-Lite.

Downloads / mo
43.5M
Stars
10.5K
Last release
6.3.0
License
BSD-3-Clause

Strengths

  • Maps data columns to visuals. Declare encoding channels and let the chart grammar handle plot details.
  • Links notebook charts with Python. Observe selections and update displayed charts through JupyterChart.

Limitations

  • Large embedded datasets trigger errors. Enable VegaFusion or aggregate data before embedding it in a chart.
  • Image export needs another package. Install vl-convert-python for images or offline HTML files.

Quickstart

From jupyter_chart.html
$ pip install altair
import altair as alt
chart = alt.Chart(alt.Data(values=[{"x": "A", "y": 1}, {"x": "B", "y": 3}])).mark_bar().encode(x="x:N", y="y:Q")
chart.save("chart.html")

Altair examples

From open-source projects on GitHub
def _altair_to_dict(obj):
    import altair as alt

    # The vegafusion transformer makes Altair refuse any other format
    if alt.data_transformers.active == 'vegafusion':
        return obj.to_dict(format='vega')
    return obj.to_dict()

Draws statistical data visualizations.

Downloads / mo
31.6M
Stars
14.1K
Last release
0.13.2
License
BSD-3-Clause
$ pip install seaborn
import seaborn as sns
import matplotlib.pyplot as plt
sns.scatterplot(x=[1, 2, 3], y=[1, 4, 9])
plt.show()

seaborn examples

From open-source projects on GitHub

Creates interactive JavaScript-powered visualizations from Python.

Downloads / mo
6.5M
Stars
20.5K
Last release
3.10.2
License
BSD-3-Clause

Strengths

  • Runs live Python callbacks. Serve applications that synchronize Python models with connected browsers.
  • Includes browser exploration tools. Pan, zoom, and reset charts through built-in browser controls.

Limitations

  • Two-way Python interaction needs hosting. Run a Bokeh server to receive interactive browser updates in Python.
  • Image export needs browser dependencies. Install a headless browser backend for PNG or SVG export.

Quickstart

From stats.html
$ pip install bokeh
from bokeh.plotting import figure, show
p = figure()
p.line([1, 2, 3], [1, 4, 9])
show(p)

Bokeh examples

From open-source projects on GitHub

Implements a grammar of graphics for Python.

Downloads / mo
1.7M
Stars
4.8K
Last release
0.15.9
License
MIT

Quickstart

From json#info.description
$ pip install plotnine
from plotnine import ggplot, aes, geom_point
from plotnine.data import mtcars
plot = ggplot(mtcars, aes('wt', 'mpg')) + geom_point()
plot.show()

plotnine examples

From open-source projects on GitHub

Provides scientific graphics and GUI tools for Python.

Downloads / mo
1.0M
Stars
4.4K
Last release
0.14.0
License
MIT

Quickstart

From how_to_use.html
$ pip install pyqtgraph PySide6
import pyqtgraph as pg
app = pg.mkQApp()
plot = pg.plot([1, 2, 3], [1, 4, 9])
pg.exec()

Builds charts from Python options.

Downloads / mo
823.9K
Stars
15.8K
Last release
2.1.0
License
MIT

Quickstart

From README.en.md
$ pip install pyecharts
from pyecharts.charts import Bar
bar = Bar().add_xaxis(['A', 'B']).add_yaxis('Count', [1, 3])
bar.render('chart.html')

pyecharts examples

From open-source projects on GitHub

FAQ

Matplotlib suits publication figures and fine control over every element. Plotly suits interactive charts in notebooks and web dashboards. seaborn suits statistical charts drawn from DataFrames with little code.

Matplotlib is the foundational Python plotting library for static, animated, and interactive figures. pandas and seaborn draw their charts with it.

Bokeh creates interactive visualizations from Python that render in the browser with JavaScript. It supports streaming data and server-backed apps.

seaborn is a statistical visualization library built on Matplotlib. It draws distribution, regression, and categorical plots directly from DataFrames.

Matplotlib draws static images by default and gives low-level control. Plotly renders interactive HTML charts with zoom and hover built in.

seaborn is built on Matplotlib and adds statistical chart types with styled defaults. Matplotlib remains the layer for fine-tuning each figure.

For coding agents

Found your charting library? Help your agent use it.

Connect Exa so your coding agent can find the library’s documentation, check its API, and look up implementations while you build.

Run in your terminal

claude plugin install exa@claude-plugins-official