Python Charts

    • Matplotlib 65 The core library, with full control over every element
    • Plotly 27 Interactive charts for the web and notebooks
    • Seaborn 17 Statistical plots straight from DataFrames
    • Pandas 8 Quick charts with df.plot()
    • Altair 5 Declarative charts built on Vega-Lite
    • Plotnine 3 ggplot2's grammar of graphics in Python
    • Streamlit 1 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 10 Diff-in-diff, synthetic control, IV and more
    • AI 1 Use LLMs to build charts from your data
  • Python
  • All Posts
  • How to Apply Built-in Style Sheets in Matplotlib (ggplot, dark_background, and more)
    Matplotlib

    How to Apply Built-in Style Sheets in Matplotlib (ggplot, dark_background, and more)

    Switch the look of any Matplotlib chart in one line with built-in style sheets like ggplot, dark_background, seaborn, and fivethirtyeight.

    Aug 10, 2026
    matplotlib styles ggplot dark_background style sheets seaborn fivethirtyeight
  • How to Set Plot Background Transparency in Matplotlib (PNG Export)
    Matplotlib

    How to Set Plot Background Transparency in Matplotlib (PNG Export)

    Export Matplotlib plots as PNGs with a fully or partially transparent background using savefig and patch alpha settings.

    Aug 10, 2026
    matplotlib transparent background png export savefig
  • Using Custom Hex Colors and RGB Palettes in Matplotlib
    Matplotlib

    Using Custom Hex Colors and RGB Palettes in Matplotlib

    How to use hex color codes and custom RGB tuples to give Matplotlib charts a polished, on-brand look.

    Aug 10, 2026
    matplotlib colors hex rgb palette styling
  • Format Text with LaTeX Equations in Matplotlib Labels
    Matplotlib

    Format Text with LaTeX Equations in Matplotlib Labels

    Use LaTeX math notation in Matplotlib titles, axis labels, legends, and annotations with raw strings and mathtext.

    Aug 10, 2026
    matplotlib latex equations math labels title
  • Style Title, Subtitle, and Footnotes in Matplotlib
    Matplotlib

    Style Title, Subtitle, and Footnotes in Matplotlib

    Quick guide to styling the main title, subtitle, and footnote of a Matplotlib figure.

    Aug 10, 2026
    matplotlib title subtitle footnote styling
  • How to Add Annotations with Arrows in Matplotlib
    Matplotlib

    How to Add Annotations with Arrows in Matplotlib

    Step-by-step guide to drawing straight and curved callout arrows using plt.annotate in Matplotlib.

    Aug 10, 2026
    matplotlib annotate arrows visualization
  • Add Text Annotations and Labels to Data Points in Matplotlib
    Matplotlib

    Add Text Annotations and Labels to Data Points in Matplotlib

    Quick guide on adding descriptive text labels and callout annotations to data points in Matplotlib.

    Aug 10, 2026
    matplotlib annotate labels text
  • How to Create a Multi-Column Legend in Matplotlib
    Matplotlib

    How to Create a Multi-Column Legend in Matplotlib

    Quick guide on formatting a Matplotlib legend into multiple columns using the ncol parameter.

    Aug 10, 2026
    matplotlib legend layout columns
  • Change Legend Order and Label Names in Matplotlib
    Matplotlib

    Change Legend Order and Label Names in Matplotlib

    Learn how to reorder legend items and overwrite label names in Matplotlib without modifying the source data.

    Aug 10, 2026
    matplotlib legend customization labels
  • Change the Legend Title and Font Size in Matplotlib
    Matplotlib

    Change the Legend Title and Font Size in Matplotlib

    Quick guide to changing the legend title text, title font size, and item font size in Matplotlib.

    Aug 10, 2026
    matplotlib legend font size title
  • Move the Matplotlib Legend Outside the Plot Box
    Matplotlib

    Move the Matplotlib Legend Outside the Plot Box

    Learn how to position your Matplotlib legend outside of the chart area using bbox_to_anchor.

    Aug 10, 2026
    matplotlib legend layout visualization
  • Set Custom Date Formatting on Matplotlib Axis
    Matplotlib

    Set Custom Date Formatting on Matplotlib Axis

    Quick tutorial on formatting date axis labels in Matplotlib using mdates.DateFormatter and MonthLocator.

    Aug 10, 2026
    matplotlib dates axis formatting
  • How to Remove the Outer Border/Spines of a Matplotlib Plot
    Matplotlib

    How to Remove the Outer Border/Spines of a Matplotlib Plot

    Clear tutorial on removing the outer border (spines) from a Matplotlib chart for a clean, modern aesthetic.

    Aug 10, 2026
    matplotlib spines border layout
  • How to Change Tick Label Font Size and Style in Matplotlib
    Matplotlib

    How to Change Tick Label Font Size and Style in Matplotlib

    Quick guide to changing the size, weight, color, and font style of tick labels in Matplotlib.

    Aug 10, 2026
    matplotlib tick labels font size font style
  • How to Create Dual Y-Axes in Matplotlib
    Matplotlib

    How to Create Dual Y-Axes in Matplotlib

    Learn how to use ax.twinx() to plot two datasets with different scales on a shared X-axis.

    Aug 10, 2026
    matplotlib twinx dual y-axis axis
  • Invert or Reverse the X or Y Axis Direction in Matplotlib
    Matplotlib

    Invert or Reverse the X or Y Axis Direction in Matplotlib

    Reverse the direction of Matplotlib x-axes and y-axes.

    Aug 10, 2026
    matplotlib inverted axis reverse axis axis direction
  • How to Adjust Subplot Spacing and Margins Using tight_layout in Matplotlib
    Matplotlib

    How to Adjust Subplot Spacing and Margins Using tight_layout in Matplotlib

    Automatically adjust Matplotlib subplot spacing and margins with tight_layout.

    Aug 10, 2026
    matplotlib subplots tight layout spacing margins
  • Move X-Axis or Y-Axis Spines to the Center in Matplotlib
    Matplotlib

    Move X-Axis or Y-Axis Spines to the Center in Matplotlib

    Move Matplotlib x-axis and y-axis spines to the center of a chart.

    Aug 10, 2026
    matplotlib axis spines axes centered axes
  • Set Logarithmic Scale on the X or Y Axis in Matplotlib
    Matplotlib

    Set Logarithmic Scale on the X or Y Axis in Matplotlib

    Use logarithmic scales on Matplotlib x-axes and y-axes.

    Aug 10, 2026
    matplotlib logarithmic scale log scale axis scale
  • How to Format Axis Labels as Currency or Percentages in Matplotlib
    Matplotlib

    How to Format Axis Labels as Currency or Percentages in Matplotlib

    Format Matplotlib axis tick labels as currency or percentages.

    Aug 10, 2026
    matplotlib axis labels currency percentage tick labels
  • « Previous
  • 1
  • …
  • 6
  • 7
  • 8 (current)
  • 9
  • 10
  • » Next

Python plotting and visualization demystified

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