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).

Added in version 3.8.

Examples using matplotlib.axes.Axes.label_outer#

fill_between with transparency

fill_between with transparency

Cumulative distributions

Cumulative distributions

Create multiple subplots using plt.subplots

Create multiple subplots using plt.subplots