MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / update

Method update

lib/matplotlib/gridspec.py:776–798  ·  view source on GitHub ↗

Update the dimensions of the passed parameters. *None* means unchanged.

(self, left=None, bottom=None, right=None, top=None,
               wspace=None, hspace=None)

Source from the content-addressed store, hash-verified

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"""

Callers 3

get_subplot_paramsMethod · 0.95
__init__Method · 0.95
test_SubplotParamsFunction · 0.95

Calls

no outgoing calls

Tested by 1

test_SubplotParamsFunction · 0.76