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

Method add_cell

lib/matplotlib/table.py:331–353  ·  view source on GitHub ↗

Create a cell and add it to the table. Parameters ---------- row : int Row index. col : int Column index. *args, **kwargs All other parameters are passed on to `Cell`. Returns ------- `.Cel

(self, row, col, *args, **kwargs)

Source from the content-addressed store, hash-verified

329 self.set_clip_on(False)
330
331 def add_cell(self, row, col, *args, **kwargs):
332 """
333 Create a cell and add it to the table.
334
335 Parameters
336 ----------
337 row : int
338 Row index.
339 col : int
340 Column index.
341 *args, **kwargs
342 All other parameters are passed on to `Cell`.
343
344 Returns
345 -------
346 `.Cell`
347 The created cell.
348
349 """
350 xy = (0, 0)
351 cell = Cell(xy, visible_edges=self.edges, *args, **kwargs)
352 self[row, col] = cell
353 return cell
354
355 def __setitem__(self, position, cell):
356 """

Callers 2

tableFunction · 0.95
test_table_cellsFunction · 0.95

Calls 1

CellClass · 0.85

Tested by 1

test_table_cellsFunction · 0.76