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.
Switch the look of any Matplotlib chart in one line with built-in style sheets like ggplot, dark_background, seaborn, and fivethirtyeight.
Export Matplotlib plots as PNGs with a fully or partially transparent background using savefig and patch alpha settings.
How to use hex color codes and custom RGB tuples to give Matplotlib charts a polished, on-brand look.
Use LaTeX math notation in Matplotlib titles, axis labels, legends, and annotations with raw strings and mathtext.
Quick guide to styling the main title, subtitle, and footnote of a Matplotlib figure.
Step-by-step guide to drawing straight and curved callout arrows using plt.annotate in Matplotlib.
Quick guide on adding descriptive text labels and callout annotations to data points in Matplotlib.
Quick guide on formatting a Matplotlib legend into multiple columns using the ncol parameter.
Learn how to reorder legend items and overwrite label names in Matplotlib without modifying the source data.
Quick guide to changing the legend title text, title font size, and item font size in Matplotlib.
Learn how to position your Matplotlib legend outside of the chart area using bbox_to_anchor.
Quick tutorial on formatting date axis labels in Matplotlib using mdates.DateFormatter and MonthLocator.
Clear tutorial on removing the outer border (spines) from a Matplotlib chart for a clean, modern aesthetic.
Quick guide to changing the size, weight, color, and font style of tick labels in Matplotlib.
Learn how to use ax.twinx() to plot two datasets with different scales on a shared X-axis.
Reverse the direction of Matplotlib x-axes and y-axes.
Automatically adjust Matplotlib subplot spacing and margins with tight_layout.
Move Matplotlib x-axis and y-axis spines to the center of a chart.
Use logarithmic scales on Matplotlib x-axes and y-axes.
Format Matplotlib axis tick labels as currency or percentages.