[ Web Proxy ]
URL:
Viewing: https://matplotlib.org/devdocs/api/toolkits/../_as_gen/matplotlib.axes.Axes.set_ymargin.html [Back]  [Original]

matplotlib.axes.Axes.set_ymargin — Matplotlib 3.12.0.dev843+g39b27ddaa documentation
Back to top
Search the docs ...:

matplotlib.axes.Axes.set_ymargin#

Axes.set_ymargin(m)[source]#

Set padding of Y data limits prior to autoscaling.

m times the data interval will be added to each end of that interval before it is used in autoscaling. If m is negative, this will clip the data range instead of expanding it.

For example, if your data is in the range [0, 2], a margin of 0.1 will result in a range [-0.2, 2.2]; a margin of -0.1 will result in a range of [0.2, 1.8].

Parameters:
mfloat greater than -0.5

Web Proxy Viewer  |  New URL  |  Original Page