How to Make a GitHub-Style Contribution Heatmap in Python
Recreate GitHub's green contribution graph in Python: daily activity as a weekday-by-week grid of colored squares, built with Matplotlib, calplot, or an interactive Plotly heatmap.
Python plotting and visualization demystified
Recreate GitHub's green contribution graph in Python: daily activity as a weekday-by-week grid of colored squares, built with Matplotlib, calplot, or an interactive Plotly heatmap.
Build Plotly subplot grids with make_subplots: add traces by row and column, share axes, add a secondary y-axis, mix pies with bar charts, and span cells.
Make histograms in Seaborn with sns.histplot and sns.displot: set bins and binwidth, compare groups with hue and multiple, normalize with stat, add a KDE, and facet by column.
Use sns.move_legend to put a Seaborn legend outside the plot, above it in one row, or below a FacetGrid, without losing the hue title or handles.
Save Matplotlib plots to PNG, SVG, PDF, or JPEG with fig.savefig, and control resolution, cropping, background color, and multi-page PDFs.
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.