Defaults are given by :rc:`figure.subplot.[name]`. Parameters ---------- left : float, optional The position of the left edge of the subplots, as a fraction of the figure width. right : float, optional The position of the
(self, left=None, bottom=None, right=None, top=None,
wspace=None, hspace=None)
| 744 | """ |
| 745 | |
| 746 | def __init__(self, left=None, bottom=None, right=None, top=None, |
| 747 | wspace=None, hspace=None): |
| 748 | """ |
| 749 | Defaults are given by :rc:`figure.subplot.[name]`. |
| 750 | |
| 751 | Parameters |
| 752 | ---------- |
| 753 | left : float, optional |
| 754 | The position of the left edge of the subplots, |
| 755 | as a fraction of the figure width. |
| 756 | right : float, optional |
| 757 | The position of the right edge of the subplots, |
| 758 | as a fraction of the figure width. |
| 759 | bottom : float, optional |
| 760 | The position of the bottom edge of the subplots, |
| 761 | as a fraction of the figure height. |
| 762 | top : float, optional |
| 763 | The position of the top edge of the subplots, |
| 764 | as a fraction of the figure height. |
| 765 | wspace : float, optional |
| 766 | The width of the padding between subplots, |
| 767 | as a fraction of the average Axes width. |
| 768 | hspace : float, optional |
| 769 | The height of the padding between subplots, |
| 770 | as a fraction of the average Axes height. |
| 771 | """ |
| 772 | for key in ["left", "bottom", "right", "top", "wspace", "hspace"]: |
| 773 | setattr(self, key, mpl.rcParams[f"figure.subplot.{key}"]) |
| 774 | self.update(left, bottom, right, top, wspace, hspace) |
| 775 | |
| 776 | def update(self, left=None, bottom=None, right=None, top=None, |
| 777 | wspace=None, hspace=None): |