Update the dimensions of the passed parameters. *None* means unchanged.
(self, left=None, bottom=None, right=None, top=None,
wspace=None, hspace=None)
| 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): |
| 778 | """ |
| 779 | Update the dimensions of the passed parameters. *None* means unchanged. |
| 780 | """ |
| 781 | if ((left if left is not None else self.left) |
| 782 | >= (right if right is not None else self.right)): |
| 783 | raise ValueError('left cannot be >= right') |
| 784 | if ((bottom if bottom is not None else self.bottom) |
| 785 | >= (top if top is not None else self.top)): |
| 786 | raise ValueError('bottom cannot be >= top') |
| 787 | if left is not None: |
| 788 | self.left = left |
| 789 | if right is not None: |
| 790 | self.right = right |
| 791 | if bottom is not None: |
| 792 | self.bottom = bottom |
| 793 | if top is not None: |
| 794 | self.top = top |
| 795 | if wspace is not None: |
| 796 | self.wspace = wspace |
| 797 | if hspace is not None: |
| 798 | self.hspace = hspace |
| 799 | |
| 800 | def reset(self): |
| 801 | """Restore the subplot positioning parameters to the default rcParams values""" |
no outgoing calls