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

Method reset_margins

lib/matplotlib/_layoutgrid.py:120–128  ·  view source on GitHub ↗

Reset all the margins to zero. Must do this after changing figure size, for instance, because the relative size of the axes labels etc changes.

(self)

Source from the content-addressed store, hash-verified

118 return str
119
120 def reset_margins(self):
121 """
122 Reset all the margins to zero. Must do this after changing
123 figure size, for instance, because the relative size of the
124 axes labels etc changes.
125 """
126 for todo in ['left', 'right', 'bottom', 'top',
127 'leftcb', 'rightcb', 'bottomcb', 'topcb']:
128 self.edit_margins(todo, 0.0)
129
130 def add_constraints(self, parent):
131 # define self-consistent constraints

Callers 2

__init__Method · 0.95
reset_marginsFunction · 0.80

Calls 1

edit_marginsMethod · 0.95

Tested by

no test coverage detected