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

Method __init__

lib/matplotlib/offsetbox.py:389–432  ·  view source on GitHub ↗

Parameters ---------- pad : float, default: 0.0 The boundary padding in points. sep : float, default: 0.0 The spacing between items in points. width, height : float, optional Width and height of the container box in pixel

(self, pad=0., sep=0., width=None, height=None,
                 align="baseline", mode="fixed", children=None)

Source from the content-addressed store, hash-verified

387
388class PackerBase(OffsetBox):
389 def __init__(self, pad=0., sep=0., width=None, height=None,
390 align="baseline", mode="fixed", children=None):
391 """
392 Parameters
393 ----------
394 pad : float, default: 0.0
395 The boundary padding in points.
396
397 sep : float, default: 0.0
398 The spacing between items in points.
399
400 width, height : float, optional
401 Width and height of the container box in pixels, calculated if
402 *None*.
403
404 align : {'top', 'bottom', 'left', 'right', 'center', 'baseline'}, \
405default: 'baseline'
406 Alignment of boxes.
407
408 mode : {'fixed', 'expand', 'equal'}, default: 'fixed'
409 The packing mode.
410
411 - 'fixed' packs the given `.Artist`\\s tight with *sep* spacing.
412 - 'expand' uses the maximal available space to distribute the
413 artists with equal spacing in between.
414 - 'equal': Each artist an equal fraction of the available space
415 and is left-aligned (or top-aligned) therein.
416
417 children : list of `.Artist`
418 The artists to pack.
419
420 Notes
421 -----
422 *pad* and *sep* are in points and will be scaled with the renderer
423 dpi, while *width* and *height* are in pixels.
424 """
425 super().__init__()
426 self.height = height
427 self.width = width
428 self.sep = sep
429 self.pad = pad
430 self.mode = mode
431 self.align = align
432 self._children = children
433
434
435class VPacker(PackerBase):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected