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
(self, m)
| 2884 | self.stale = True |
| 2885 | |
| 2886 | def set_ymargin(self, m): |
| 2887 | """ |
| 2888 | Set padding of Y data limits prior to autoscaling. |
| 2889 | |
| 2890 | *m* times the data interval will be added to each end of that interval |
| 2891 | before it is used in autoscaling. If *m* is negative, this will clip |
| 2892 | the data range instead of expanding it. |
| 2893 | |
| 2894 | For example, if your data is in the range [0, 2], a margin of 0.1 will |
| 2895 | result in a range [-0.2, 2.2]; a margin of -0.1 will result in a range |
| 2896 | of [0.2, 1.8]. |
| 2897 | |
| 2898 | Parameters |
| 2899 | ---------- |
| 2900 | m : float greater than -0.5 |
| 2901 | |
| 2902 | See Also |
| 2903 | -------- |
| 2904 | :ref:`autoscale_margins` |
| 2905 | matplotlib.axes.Axes.margins |
| 2906 | matplotlib.axes.Axes.get_ymargin |
| 2907 | """ |
| 2908 | if m <= -0.5: |
| 2909 | raise ValueError("margin must be greater than -0.5") |
| 2910 | self._ymargin = m |
| 2911 | self._request_autoscale_view("y") |
| 2912 | self.stale = True |
| 2913 | |
| 2914 | def margins(self, *margins, x=None, y=None, tight=True): |
| 2915 | """ |
no test coverage detected