matplotlib.axes.Axes.set_axis_off#

Axes.set_axis_off()[source]#

Hide all visual components of the x- and y-axis.

This sets a flag to suppress drawing of all axis decorations, i.e. axis labels, axis spines, and the axis tick component (tick markers, tick labels, and grid lines). Individual visibility settings of these components are ignored as long as set_axis_off() is in effect.

Examples using matplotlib.axes.Axes.set_axis_off#

Marker reference

Marker reference

Barcode

Barcode

Blend transparency with color in 2D images

Blend transparency with color in 2D images

Nested pie charts

Nested pie charts

Annotation arrow style reference

Annotation arrow style reference

Text alignment

Text alignment

Colormap reference

Colormap reference

Reference for Matplotlib artists

Reference for Matplotlib artists

Drawing fancy boxes

Drawing fancy boxes

Choosing Colormaps in Matplotlib

Choosing Colormaps in Matplotlib

Text properties and layout

Text properties and layout