matplotlib.axes.Axes.label_outer#

Axes.label_outer(remove_inner_ticks=False)[source]#

Only show "outer" labels and tick labels.

x-labels are only kept for subplots on the last row (or first row, if labels are on the top side); y-labels only for subplots on the first column (or last column, if labels are on the right side).

Parameters:
remove_inner_ticksbool, default: False

If True, remove the inner ticks as well (not only tick labels).

New in version 3.8.

Examples using matplotlib.axes.Axes.label_outer#

Fill Between and Alpha

Fill Between and Alpha

Creating multiple subplots using plt.subplots

Creating multiple subplots using plt.subplots

Plotting cumulative distributions

Plotting cumulative distributions