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

Blend transparency with color in 2D images

Blend transparency with color in 2D images

Barcode

Barcode

Nested pie charts

Nested pie charts

Text alignment

Text alignment

Annotation arrow style reference

Annotation arrow style reference

Reference for Matplotlib artists

Reference for Matplotlib artists

Drawing fancy boxes

Drawing fancy boxes

Colormap reference

Colormap reference

Choosing Colormaps in Matplotlib

Choosing Colormaps in Matplotlib

Text properties and layout

Text properties and layout