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

Method edit_margins

lib/matplotlib/_layoutgrid.py:290–304  ·  view source on GitHub ↗

Change the size of all the margin of all the cells in the layout grid. Parameters ---------- todo : string (one of 'left', 'right', 'bottom', 'top') margin to alter. size : float Size to set the margins. Fraction of figure size.

(self, todo, size)

Source from the content-addressed store, hash-verified

288 self.edit_margin(todo, size, cell)
289
290 def edit_margins(self, todo, size):
291 """
292 Change the size of all the margin of all the cells in the layout grid.
293
294 Parameters
295 ----------
296 todo : string (one of 'left', 'right', 'bottom', 'top')
297 margin to alter.
298
299 size : float
300 Size to set the margins. Fraction of figure size.
301 """
302
303 for i in range(len(self.margin_vals[todo])):
304 self.edit_margin(todo, size, i)
305
306 def edit_all_margins_min(self, todo, size):
307 """

Callers 1

reset_marginsMethod · 0.95

Calls 1

edit_marginMethod · 0.95

Tested by

no test coverage detected