How to Hide or Remove Axis Ticks and Labels in Matplotlib
Hide axis ticks, tick labels, axis labels, or an entire Matplotlib axis.
Hide axis ticks, tick labels, axis labels, or an entire Matplotlib axis.
Set x-axis and y-axis limits in Matplotlib with xlim, ylim, set_xlim, and set_ylim.
Create and customize heatmaps directly in Matplotlib with imshow() and pcolormesh().
Build clear Seaborn heatmaps, from a simple matrix to annotated correlation charts.
Build interactive Sankey diagrams in Plotly with go.Sankey: define nodes and links, build them from a pandas DataFrame, color the flows, fix node positions, and customize the hover text.
Add titles and subtitles in Matplotlib with set_title, suptitle, and annotate, including left alignment and subplots.
Every built-in Matplotlib colormap, how to use the cmap argument, and how to set plot colors
Put several plots in one figure with plt.subplots(): index the axes, loop over them, add titles, and fix the spacing.
Make a scatter plot with plt.scatter(), then color points by category or value, change their size, and add legends and trend lines.
Draw horizontal and vertical lines in Matplotlib with axhline, axvline, hlines, and vlines
Add a legend with plt.legend() or ax.legend(), choose its location, style it, and build custom legend entries.
Make box plots with plt.boxplot(), then label and color the boxes, flip them, show means and points, and group them.
A quick tutorial of how to create waterfall charts in python, using Matplotlib and Plotly.
Using Matplotlib, Seaborn, Altair and Plotly to create a line chart with a confidence interval
Show, style, and space major and minor gridlines in Matplotlib
Label the segments and totals of stacked bar charts in Matplotlib
Make stacked bar charts with pandas, Matplotlib, Seaborn, plotnine, Altair, and Plotly, including labels and 100% stacked bars.
Creating pie charts with labels, percentages, and custom colors in Matplotlib
Set the figure size with figsize in plt.figure() or plt.subplots(), resize an existing figure, and size plots in pixels.