X Tutup
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions lib/matplotlib/axes/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1700,12 +1700,21 @@ def set_aspect(self, aspect, adjustable=None, anchor=None, share=False):
share : bool, default: False
If ``True``, apply the settings to all shared Axes.

Notes
-----
The aspect will require an update of the Axes position or limits (which
one depends on *adjustable*). This update is applied lazily, the latest
when the figure is drawn. Use `.apply_aspect` to force an update.

See Also
--------
matplotlib.axes.Axes.set_adjustable
Set how the Axes adjusts to achieve the required aspect ratio.
matplotlib.axes.Axes.set_anchor
Set the position in case of extra space.
matplotlib.axes.Axes.apply_aspect
Force the update required to meet the aspect ratio to happen
immediately.
"""
if cbook._str_equal(aspect, 'equal'):
aspect = 1
Expand Down
Loading
X Tutup