()
| 179 | |
| 180 | |
| 181 | def 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() |
nothing calls this directly
no test coverage detected
searching dependent graphs…