MCPcopy
hub / github.com/matplotlib/matplotlib / edit_margin_min

Method edit_margin_min

lib/matplotlib/_layoutgrid.py:269–288  ·  view source on GitHub ↗

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

(self, todo, size, cell=0)

Source from the content-addressed store, hash-verified

267 self.margin_vals[todo][cell] = size
268
269 def edit_margin_min(self, todo, size, cell=0):
270 """
271 Change the minimum size of the margin for one cell.
272
273 Parameters
274 ----------
275 todo : string (one of 'left', 'right', 'bottom', 'top')
276 margin to alter.
277
278 size : float
279 Minimum size of the margin . If it is larger than the
280 existing minimum it updates the margin size. Fraction of
281 figure size.
282
283 cell : int
284 Cell column or row to edit.
285 """
286
287 if size > self.margin_vals[todo][cell]:
288 self.edit_margin(todo, size, cell)
289
290 def edit_margins(self, todo, size):
291 """

Callers 6

edit_all_margins_minMethod · 0.95
compress_fixed_aspectFunction · 0.80
make_layout_marginsFunction · 0.80
make_margin_suptitlesFunction · 0.80
match_submerged_marginsFunction · 0.80

Calls 1

edit_marginMethod · 0.95

Tested by

no test coverage detected