You are reading documentation for the unreleased version of Matplotlib. Try searching for the released version of this page instead?
Version 2.0.0b1.post7580.dev0+ge487118
matplotlib
Fork me on GitHub

This Page

matplotlib.axes.Axes.apply_aspect

Axes.apply_aspect(position=None)

Adjust the Axes so that it fulfills its aspect setting.

Depending on get_adjustable and get_anchor this will either modify the Axes box or the view limits.

See also

matplotlib.axes.Axes.set_aspect
for a description of aspect handling.
matplotlib.axes.Axes.set_adjustable
defining the parameter to adjust in order to meet the required aspect.
matplotlib.axes.Axes.set_anchor
defining the position in case of extra space.

Notes

This is automatically called on draw. So you won’t need to call this yourself in most cases. One exception may be if you need to update the Axes before drawing.