You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note to self: Margins define the extra space we want to have around the data. They are in fraction of the data range. This is similar but not exactly the same as "Axes units". When we have a data range of 1 and margins=0.1. The xrange will be 0.1 + 1 + 0.1 = 1.2; i.e. the left-most data is 0.1*1.2 = 0.12 in axes units away from the border.
Documentation Link
https://matplotlib.org/devdocs/api/_as_gen/matplotlib.axes.Axes.margins.html
Problem
From #20942 (comment):
Axes.margins
is not quite clear.Suggested improvement
Actions:
set_xmargin
/set_ymargin
set_xlim
,set_ylim
)Note that the view limits are only updated in the nextNot true anymore, accessing lims unstalls them.autoscale_view
. Margins only stall the view.Include / consolidate the following and cross-link from the API docs:
Matplotlib Version
3.4.x
Matplotlib documentation version
3.4.x
The text was updated successfully, but these errors were encountered: