How to Embed Matplotlib Figures in Tkinter / PyQt GUIs
Embed Matplotlib figures in Tkinter and PyQt applications with FigureCanvasTkAgg and FigureCanvasQTAgg.
Embed Matplotlib figures in Tkinter and PyQt applications with FigureCanvasTkAgg and FigureCanvasQTAgg.
Speed up Plotly rendering for large datasets by using the WebGL (Scattergl) renderer.
Downsample large time series data in Python for fast plotting without losing spikes or overall shape, comparing naive decimation, min/max envelopes, and LTTB.
Generate PDF data reports with embedded Python charts using matplotlib's PdfPages.
Render millions of points quickly in Python with Datashader, which rasterizes data directly instead of drawing one marker per point.
Use a custom font, like one downloaded from Google Fonts, in Matplotlib charts instead of the default DejaVu Sans.
Add and customize hover tooltips on Altair scatter plots, including formatting values and showing computed fields.
Combine multiple Altair charts with layering (operator +) and concatenation (| and &).
Set custom axis titles and number formatting in Altair with alt.X, alt.Y, and alt.Axis.
Draw a population pyramid in Python with Matplotlib using mirrored horizontal bar charts.
A practical Matplotlib workflow for creating animations and exporting them as GIF or MP4 files.
A practical guide to splitting Plotnine plots into panels with facet_wrap and facet_grid.
A simple Plotnine theme recipe for making charts feel closer to ggplot2 without rewriting your plots.
Make a donut chart in Matplotlib and add a centered label with ax.text.
Create polar scatter plots in Matplotlib and Plotly to show points by angle and radius.
Learn how to save and export Altair charts in multiple formats including PNG, SVG, and HTML
Add error bars to Pandas DataFrame plots with yerr and xerr on df.plot.
Plot stacked and unstacked bar charts in Pandas with df.plot and the stacked argument.
Resample time series data to a custom frequency in Pandas and plot the result with df.plot.
Switch the Pandas default plotting backend to Plotly so df.plot() returns interactive figures.