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

Method edit_outer_margin_mins

lib/matplotlib/_layoutgrid.py:325–348  ·  view source on GitHub ↗

Edit all four margin minimums in one statement. Parameters ---------- margin : dict size of margins in a dict with keys 'left', 'right', 'bottom', 'top' ss : SubplotSpec defines the subplotspec these margins should be app

(self, margin, ss)

Source from the content-addressed store, hash-verified

323 self.edit_margin_min(todo, size, i)
324
325 def edit_outer_margin_mins(self, margin, ss):
326 """
327 Edit all four margin minimums in one statement.
328
329 Parameters
330 ----------
331 margin : dict
332 size of margins in a dict with keys 'left', 'right', 'bottom',
333 'top'
334
335 ss : SubplotSpec
336 defines the subplotspec these margins should be applied to
337 """
338
339 self.edit_margin_min('left', margin['left'], ss.colspan.start)
340 self.edit_margin_min('leftcb', margin['leftcb'], ss.colspan.start)
341 self.edit_margin_min('right', margin['right'], ss.colspan.stop - 1)
342 self.edit_margin_min('rightcb', margin['rightcb'], ss.colspan.stop - 1)
343 # rows are from the top down:
344 self.edit_margin_min('top', margin['top'], ss.rowspan.start)
345 self.edit_margin_min('topcb', margin['topcb'], ss.rowspan.start)
346 self.edit_margin_min('bottom', margin['bottom'], ss.rowspan.stop - 1)
347 self.edit_margin_min('bottomcb', margin['bottomcb'],
348 ss.rowspan.stop - 1)
349
350 def get_margins(self, todo, col):
351 """Return the margin at this position"""

Callers 1

make_layout_marginsFunction · 0.80

Calls 1

edit_margin_minMethod · 0.95

Tested by

no test coverage detected