| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2871,6 +2871,13 @@ def margins(self, *margins, x=None, y=None, tight=True): | |||
| 2871 | 2871 | ||
| 2872 | 2872 | .. plot:: _embedded_plots/axes_margins.py | |
| 2873 | 2873 | ||
| 2874 | + The margin is a fraction of the data interval: *margin* times the | ||
| 2875 | + data interval is added to each end of that interval before it is | ||
| 2876 | + used in autoscaling. If the margin is negative, the data range is | ||
| 2877 | + clipped instead of expanded. For example, if your data is in the | ||
| 2878 | + range [0, 2], a margin of 0.1 will result in a range [-0.2, 2.2]; | ||
| 2879 | + a margin of -0.1 will result in a range of [0.2, 1.8]. | ||
| 2880 | + | ||
| 2874 | 2881 | All input parameters must be floats greater than -0.5. Passing both | |
| 2875 | 2882 | positional and keyword arguments is invalid and will raise a TypeError. | |
| 2876 | 2883 | If no arguments (positional or otherwise) are provided, the current | |
@@ -2917,6 +2924,7 @@ def margins(self, *margins, x=None, y=None, tight=True): | |||
| 2917 | 2924 | -------- | |
| 2918 | 2925 | :ref:`autoscale_margins` | |
| 2919 | 2926 | .Axes.set_xmargin, .Axes.set_ymargin | |
| 2927 | + .Axes.set_xlim, .Axes.set_ylim | ||
| 2920 | 2928 | """ | |
| 2921 | 2929 | ||
| 2922 | 2930 | if margins and (x is not None or y is not None): | |
| Back | FazBrowse Home | New Git URL |
0 commit comments