How to Make a Bump Chart in Matplotlib
Make a bump chart in Matplotlib to show how rankings change over time, with smooth curves, highlighting, and top-N entries and exits.
Make a bump chart in Matplotlib to show how rankings change over time, with smooth curves, highlighting, and top-N entries and exits.
Draw treemaps in Matplotlib with squarify: labels and values, color by a second measure, and a nested treemap built from rectangles.
Build raincloud plots in Matplotlib from a half violin, a box plot, and jittered points, or use the ptitprince package.
Plot autocorrelation and partial autocorrelation with statsmodels, read the patterns, handle trends and seasonality, and customize the charts.
Plot a dendrogram in Python with SciPy, cut it into clusters, choose a linkage method, and draw a Seaborn clustermap.
Build interactive Leaflet maps in Python with Folium: markers, popups, clusters, heatmaps, choropleths, and layer controls.
Make horizontal and vertical lollipop charts in Matplotlib with hlines() and stem(), plus Cleveland dot plots for comparing several series.
Draw two and three set Venn diagrams with matplotlib-venn, and build an UpSet plot in Matplotlib for four or more sets.
Make a Q-Q plot in Python with scipy or statsmodels, and learn to read skew, heavy tails, and outliers from its shape.
Make choropleth maps in Python with GeoPandas using real Census and Natural Earth data.
Draw network graphs in Python with NetworkX and Matplotlib, then make them interactive with pyvis.
Make a word cloud in Python with the wordcloud library, then control stopwords, shape, colors, and word frequencies.
A one-page Matplotlib cheat sheet to download, with code for twelve chart types and the commands for titles, axes, legends, layouts, and saving.
Add x and y axis labels in Matplotlib and control their font size, spacing, position, and rotation, including shared labels for subplots.
Make area charts with fill_between and stacked area charts with stackplot, show percentages, label the layers, and draw stream graphs.
Make a horizontal bar chart with barh, sort it so the largest bar is on top, add value labels, and handle long names and negative values.
Draw contour lines and filled contour plots in Matplotlib, choose levels, label the lines, mark zero, and contour scattered data.
Format and color pandas DataFrames with df.style, including number formats, background gradients, highlighting max and min, row rules, data bars, CSS, and export.
Draw line charts with px.line, plot multiple lines from long or wide data, add markers and dashes, label line ends, facet into small multiples, and fix zigzags and gaps.
Build bar charts with px.bar, including grouped, stacked, 100% stacked, horizontal and sorted bars, text labels, aggregated data, and color by value.