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

Method edit_margin

lib/matplotlib/_layoutgrid.py:250–267  ·  view source on GitHub ↗

Change the size of the margin for one cell. Parameters ---------- todo : string (one of 'left', 'right', 'bottom', 'top') margin to alter. size : float Size of the margin. If it is larger than the existing minimum it upd

(self, todo, size, cell)

Source from the content-addressed store, hash-verified

248 # contain things of a fixed size like axes labels, tick labels, titles
249 # etc
250 def edit_margin(self, todo, size, cell):
251 """
252 Change the size of the margin for one cell.
253
254 Parameters
255 ----------
256 todo : string (one of 'left', 'right', 'bottom', 'top')
257 margin to alter.
258
259 size : float
260 Size of the margin. If it is larger than the existing minimum it
261 updates the margin size. Fraction of figure size.
262
263 cell : int
264 Cell column or row to edit.
265 """
266 self.solver.suggestValue(self.margins[todo][cell], size)
267 self.margin_vals[todo][cell] = size
268
269 def edit_margin_min(self, todo, size, cell=0):
270 """

Callers 2

edit_margin_minMethod · 0.95
edit_marginsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected