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

Method __init__

lib/matplotlib/table.py:287–329  ·  view source on GitHub ↗

Parameters ---------- ax : `~matplotlib.axes.Axes` The `~.axes.Axes` to plot the table into. loc : str, optional The position of the cell with respect to *ax*. This must be one of the `~.Table.codes`. bbox : `.Bbox` or [xmi

(self, ax, loc=None, bbox=None, **kwargs)

Source from the content-addressed store, hash-verified

285 """The border between the Axes and the table edge in Axes units."""
286
287 def __init__(self, ax, loc=None, bbox=None, **kwargs):
288 """
289 Parameters
290 ----------
291 ax : `~matplotlib.axes.Axes`
292 The `~.axes.Axes` to plot the table into.
293 loc : str, optional
294 The position of the cell with respect to *ax*. This must be one of
295 the `~.Table.codes`.
296 bbox : `.Bbox` or [xmin, ymin, width, height], optional
297 A bounding box to draw the table into. If this is not *None*, this
298 overrides *loc*.
299
300 Other Parameters
301 ----------------
302 **kwargs
303 `.Artist` properties.
304 """
305
306 super().__init__()
307
308 if isinstance(loc, str):
309 if loc not in self.codes:
310 raise ValueError(
311 "Unrecognized location {!r}. Valid locations are\n\t{}"
312 .format(loc, '\n\t'.join(self.codes)))
313 loc = self.codes[loc]
314 self.set_figure(ax.get_figure(root=False))
315 self._axes = ax
316 self._loc = loc
317 self._bbox = bbox
318
319 # use axes coords
320 ax._unstale_viewLim()
321 self.set_transform(ax.transAxes)
322
323 self._cells = {}
324 self._edges = None
325 self._autoColumns = []
326 self._autoFontsize = True
327 self._internal_update(kwargs)
328
329 self.set_clip_on(False)
330
331 def add_cell(self, row, col, *args, **kwargs):
332 """

Callers

nothing calls this directly

Calls 8

joinMethod · 0.80
_unstale_viewLimMethod · 0.80
_internal_updateMethod · 0.80
__init__Method · 0.45
set_figureMethod · 0.45
get_figureMethod · 0.45
set_transformMethod · 0.45
set_clip_onMethod · 0.45

Tested by

no test coverage detected