Axes.
apply_aspect
(position=None)¶Adjust the Axes for a specified data aspect ratio.
Depending on get_adjustable
this will modify either the Axes box
(position) or the view limits. In the former case, get_anchor
will affect the position.
See also
matplotlib.axes.Axes.set_aspect
matplotlib.axes.Axes.set_adjustable
matplotlib.axes.Axes.set_anchor
Notes
This is called automatically when each Axes is drawn. You may need to call it yourself if you need to update the Axes position and/or view limits before the Figure is drawn.