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
  • How to Hide or Remove Axis Ticks and Labels in Matplotlib
    Matplotlib

    How to Hide or Remove Axis Ticks and Labels in Matplotlib

    Hide axis ticks, tick labels, axis labels, or an entire Matplotlib axis.

    Aug 10, 2026
    matplotlib axis ticks axis labels tick labels
  • How to Set Axis Limits (xlim and ylim) in Matplotlib
    Matplotlib

    How to Set Axis Limits (xlim and ylim) in Matplotlib

    Set x-axis and y-axis limits in Matplotlib with xlim, ylim, set_xlim, and set_ylim.

    Aug 10, 2026
    matplotlib axis limits xlim ylim
  • How to Create Heatmaps in Matplotlib
    Matplotlib

    How to Create Heatmaps in Matplotlib

    Create and customize heatmaps directly in Matplotlib with imshow() and pcolormesh().

    Aug 02, 2026
    matplotlib heatmap imshow pcolormesh
  • How to Create Heatmaps in Seaborn
    Seaborn

    How to Create Heatmaps in Seaborn

    Build clear Seaborn heatmaps, from a simple matrix to annotated correlation charts.

    Aug 01, 2026
    seaborn heatmap correlation
  • How to Make a Sankey Diagram in Plotly
    Plotly

    How to Make a Sankey Diagram in Plotly

    Build interactive Sankey diagrams in Plotly with go.Sankey: define nodes and links, build them from a pandas DataFrame, color the flows, fix node positions, and customize the hover text.

    Jul 30, 2026
    plotly sankey-diagram sankey-plot sankey-chart sankey-graph interactive pandas
  • Pie Charts and Donut Charts in Plotly
    Plotly

    Pie Charts and Donut Charts in Plotly

    Creating pie charts and donut charts in Plotly

    Sep 09, 2025
    plotly pie-chart donut-chart
  • Add a Title and Subtitle in Matplotlib
    Matplotlib

    Add a Title and Subtitle in Matplotlib

    Add titles and subtitles in Matplotlib with set_title, suptitle, and annotate, including left alignment and subplots.

    Sep 07, 2025
    matplotlib title subtitle suptitle
  • Matplotlib Colormaps (cmap) and Colors: Names, Reference, and Examples
    Matplotlib

    Matplotlib Colormaps (cmap) and Colors: Names, Reference, and Examples

    Every built-in Matplotlib colormap, how to use the cmap argument, and how to set plot colors

    Sep 07, 2025
    matplotlib colors colormaps
  • Matplotlib Subplots
    Matplotlib

    Matplotlib Subplots

    Put several plots in one figure with plt.subplots(): index the axes, loop over them, add titles, and fix the spacing.

    Sep 03, 2025
    matplotlib subplots layout
  • Scatter Plots in Matplotlib
    Matplotlib

    Scatter Plots in Matplotlib

    Make a scatter plot with plt.scatter(), then color points by category or value, change their size, and add legends and trend lines.

    Sep 02, 2025
    matplotlib scatterplot scatter plot colorbar
  • Matplotlib Horizontal and Vertical Lines: axhline, axvline, hlines, vlines
    Matplotlib

    Matplotlib Horizontal and Vertical Lines: axhline, axvline, hlines, vlines

    Draw horizontal and vertical lines in Matplotlib with axhline, axvline, hlines, and vlines

    Aug 29, 2025
    matplotlib line annotation horizontal line vertical line
  • Add and Customize a Legend in Matplotlib
    Matplotlib

    Add and Customize a Legend in Matplotlib

    Add a legend with plt.legend() or ax.legend(), choose its location, style it, and build custom legend entries.

    Aug 25, 2025
    matplotlib legend customization labels
  • Box Plots in Matplotlib
    Matplotlib

    Box Plots in Matplotlib

    Make box plots with plt.boxplot(), then label and color the boxes, flip them, show means and points, and group them.

    Oct 21, 2024
    matplotlib box plot distributions
  • Waterfall Charts in Matplotlib and Plotly
    Python

    Waterfall Charts in Matplotlib and Plotly

    A quick tutorial of how to create waterfall charts in python, using Matplotlib and Plotly.

    Oct 15, 2024
    matplotlib python plotly waterfall chart
  • Line Chart with Confidence Interval in Python
    Python

    Line Chart with Confidence Interval in Python

    Using Matplotlib, Seaborn, Altair and Plotly to create a line chart with a confidence interval

    May 25, 2022
    matplotlib seaborn altair plotly line chart confidence interval
  • Customizing the Grid in Matplotlib
    Matplotlib

    Customizing the Grid in Matplotlib

    Show, style, and space major and minor gridlines in Matplotlib

    Jan 25, 2021
    matplotlib grid
  • Stacked Bar Charts with Labels in Matplotlib
    Matplotlib

    Stacked Bar Charts with Labels in Matplotlib

    Label the segments and totals of stacked bar charts in Matplotlib

    Jan 22, 2021
    matplotlib bar chart stacked bar chart
  • Stacked Bar Charts in Python
    Python

    Stacked Bar Charts in Python

    Make stacked bar charts with pandas, Matplotlib, Seaborn, plotnine, Altair, and Plotly, including labels and 100% stacked bars.

    Jan 21, 2021
    matplotlib pandas seaborn plotnine altair plotly bar chart stacked bar chart
  • Pie Charts with Labels in Matplotlib
    Matplotlib

    Pie Charts with Labels in Matplotlib

    Creating pie charts with labels, percentages, and custom colors in Matplotlib

    Jan 17, 2021
    matplotlib pie chart
  • Change the Figure Size in Matplotlib
    Matplotlib

    Change the Figure Size in Matplotlib

    Set the figure size with figsize in plt.figure() or plt.subplots(), resize an existing figure, and size plots in pixels.

    Jan 12, 2021
    matplotlib figure size plot size figsize dpi
  • « Previous
  • 1
  • …
  • 10
  • 11
  • 12 (current)
  • 13
  • » Next

Python plotting and visualization demystified

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