Python Charts

    • Matplotlib 91 The core library, with full control over every element
    • Plotly 44 Interactive charts for the web and notebooks
    • Seaborn 33 Statistical plots straight from DataFrames
    • Pandas 13 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
  • Plotly Axis Range and Log Scale: range_y, log_y, and update_yaxes
    Plotly

    Plotly Axis Range and Log Scale: range_y, log_y, and update_yaxes

    Set axis limits and log scales in Plotly: range_x/range_y and log_x/log_y in Plotly Express, fig.update_yaxes(range=..., type="log") for any figure, why log ranges are in powers of 10, partial ranges, reversed axes, log tick formats, and limits on zooming.

    Dec 05, 2026
    plotly plotly express axis range log scale update_yaxes axes
  • Plotly Facets: Small Multiples With facet_col and facet_row
    Plotly

    Plotly Facets: Small Multiples With facet_col and facet_row

    Split a Plotly Express chart into one panel per category with facet_col, facet_row, and facet_col_wrap; clean up the "column=value" panel titles, order the panels, give each panel its own y-axis, add lines to every facet, and fix the spacing error.

    Dec 05, 2026
    plotly plotly express facet_col facets small multiples subplots
  • Seaborn Subplots: Multiple Plots in One Figure With ax=
    Seaborn

    Seaborn Subplots: Multiple Plots in One Figure With ax=

    Put several Seaborn plots in one figure: create the grid with plt.subplots(), pass ax= to each axes-level function, loop over groups, set titles and axis labels on each subplot, share one legend, and fix the common errors.

    Dec 05, 2026
    seaborn subplots axes-level ax suptitle legend
  • Seaborn Boxplot: Order, Hue, Whiskers, and Outliers in sns.boxplot()
    Seaborn

    Seaborn Boxplot: Order, Hue, Whiskers, and Outliers in sns.boxplot()

    How to make a box plot with sns.boxplot(): what the box and whiskers mean, horizontal boxes, sorting by median, side-by-side groups with hue, whis= and showfliers= for outliers, showing the mean, log scales, and styling.

    Dec 05, 2026
    seaborn boxplot box plot outliers hue categorical
  • Plotly Colors: Discrete Palettes, Color Maps, and Continuous Scales
    Plotly

    Plotly Colors: Discrete Palettes, Color Maps, and Continuous Scales

    Set colors in Plotly: pick a built-in palette with color_discrete_sequence, fix each category's color with color_discrete_map, choose and center continuous colorscales, color graph_objects traces, and set a default palette for every chart.

    Dec 05, 2026
    plotly plotly express colors colorscale color palette
  • Plotly Scatter Plot: px.scatter() With Color, Size, Hover, and Trendlines
    Plotly

    Plotly Scatter Plot: px.scatter() With Color, Size, Hover, and Trendlines

    Make interactive scatter plots with Plotly Express: color and size points by columns, control the hover text, add OLS or LOWESS trendlines, show marginal distributions, split into facets, and label points.

    Dec 05, 2026
    plotly plotly express scatter scatter plot trendline hover
  • Seaborn Barplot: Estimators, Error Bars, and Colors in sns.barplot()
    Seaborn

    Seaborn Barplot: Estimators, Error Bars, and Colors in sns.barplot()

    What sns.barplot() actually draws (a mean and a 95% bootstrap confidence interval), and how to change it: estimator= for sums and medians, errorbar= for standard deviation or no bars, horizontal bars, colors, and the parameters deprecated in Seaborn 0.13.

    Dec 05, 2026
    seaborn barplot bar chart errorbar estimator confidence interval
  • Seaborn Scatter Plot: sns.scatterplot() with hue, size, and style
    Seaborn

    Seaborn Scatter Plot: sns.scatterplot() with hue, size, and style

    Make scatter plots in Seaborn with sns.scatterplot(): color points by a category or a number with hue, scale them with size, change markers with style, handle overlapping points, and split into panels with relplot.

    Dec 05, 2026
    seaborn scatterplot scatter relplot hue
  • Matplotlib AttributeError: 'Axes' object has no attribute (and How to Fix It)
    Matplotlib

    Matplotlib AttributeError: 'Axes' object has no attribute (and How to Fix It)

    Fix Matplotlib's AttributeError messages: 'Axes' object has no attribute 'xlabel', 'numpy.ndarray' object has no attribute 'plot', 'Figure' object has no attribute 'plot', and the others that come from mixing pyplot and Axes names.

    Dec 05, 2026
    matplotlib troubleshooting axes subplots pyplot object-oriented
  • Pandas Plotting: A Guide to df.plot() in Python
    Pandas

    Pandas Plotting: A Guide to df.plot() in Python

    A map of the pandas plotting tutorials: df.plot() and its kinds, multiple columns, secondary axes, grouped data, time series, interactive backends, and styled tables.

    Dec 05, 2026
    pandas guide df.plot line plot bar chart histogram
  • Matplotlib bar_label: Add Value Labels to Bar Charts
    Matplotlib

    Matplotlib bar_label: Add Value Labels to Bar Charts

    Label bars with their values using ax.bar_label: number formats, custom text, labels inside the bars, horizontal and grouped bars, negative values, and per-bar padding.

    Dec 05, 2026
    matplotlib bar_label bar chart labels annotations
  • Matplotlib fill_between: Shade Between Lines, Under a Curve, and Around a Band
    Matplotlib

    Matplotlib fill_between: Shade Between Lines, Under a Curve, and Around a Band

    Use ax.fill_between to shade between two lines, under a curve, where a condition holds, around a forecast, or across a full-height region, plus fill_betweenx and step fills.

    Dec 05, 2026
    matplotlib fill_between shading line plot confidence interval
  • Matplotlib bbox_to_anchor Explained: How It Works With loc
    Matplotlib

    Matplotlib bbox_to_anchor Explained: How It Works With loc

    How bbox_to_anchor and loc work together in a Matplotlib legend: the anchor point, the 2-tuple and 4-tuple forms, mode="expand", borderaxespad, and figure coordinates.

    Dec 05, 2026
    matplotlib legend bbox_to_anchor layout
  • 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
  • «
  • 1 (current)
  • 2
  • 3
  • …
  • 16
  • » Next

Python plotting and visualization demystified

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