How to Position the Legend in Plotly
Learn how to position Plotly legends using layout.legend and flexible placement options.
Learn how to position Plotly legends using layout.legend and flexible placement options.
Hide Plotly's modebar toolbar using config.displayModeBar or layout.modebar settings.
Change Plotly background colors with plot_bgcolor and paper_bgcolor.
Customize Plotly hover tooltips with hovertemplate for precise formatting.
Highlight a date range or a rectangular area in Matplotlib plots with axvspan and axhspan.
Add shaded areas and true vertical gradient fills under Matplotlib line plots using fill_between and imshow with a clip path.
Create continuous and discrete custom colormaps in Matplotlib from a list of hex colors and apply them to scatter plots and heatmaps.
Color each bar in a Matplotlib bar chart individually — by threshold, colormap gradient, or to highlight a specific value.
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.