Axes, legends, and guides

Control tick labels, axis transforms, and legend layout.

Guides translate scales back into something a reader can decode: axes, legends, and colourbars. These examples rotate and dodge crowded tick labels, add log-scale minor ticks and secondary axes, and control legend order, alignment, and placement down to an arbitrary canvas offset. A guide earns its space only when the reader needs it; drop the legend entirely once series are labelled directly. Every example ships its full source: click View source to copy it.

Back to top