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#

Colormap reference

Colormap reference

Barcode

Barcode

Blend transparency with color in 2D images

Blend transparency with color in 2D images

Marker reference

Marker reference

Nested pie charts

Nested pie charts

Reference for Matplotlib artists

Reference for Matplotlib artists

Drawing fancy boxes

Drawing fancy boxes

Annotation arrow style reference

Annotation arrow style reference

Text alignment

Text alignment

Choosing Colormaps in Matplotlib

Choosing Colormaps in Matplotlib

Text properties and layout

Text properties and layout