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

Function test_table_cells

lib/matplotlib/tests/test_table.py:181–196  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

179
180
181def test_table_cells():
182 fig, ax = plt.subplots()
183 table = Table(ax)
184
185 cell = table.add_cell(1, 2, 1, 1)
186 assert isinstance(cell, CustomCell)
187 assert cell is table[1, 2]
188
189 cell2 = CustomCell((0, 0), 1, 2, visible_edges=None)
190 table[2, 1] = cell2
191 assert table[2, 1] is cell2
192
193 # make sure getitem support has not broken
194 # properties and setp
195 table.properties()
196 plt.setp(table)
197
198
199@check_figures_equal()

Callers

nothing calls this directly

Calls 4

add_cellMethod · 0.95
TableClass · 0.90
subplotsMethod · 0.45
propertiesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…