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

Function test_diff_cell_table

lib/matplotlib/tests/test_table.py:91–104  ·  view source on GitHub ↗
(text_placeholders)

Source from the content-addressed store, hash-verified

89
90@image_comparison(['table_cell_manipulation.png'], style='mpl20')
91def test_diff_cell_table(text_placeholders):
92 cells = ('horizontal', 'vertical', 'open', 'closed', 'T', 'R', 'B', 'L')
93 cellText = [['1'] * len(cells)] * 2
94 colWidths = [0.1] * len(cells)
95
96 _, axs = plt.subplots(nrows=len(cells), figsize=(4, len(cells)+1), layout='tight')
97 for ax, cell in zip(axs, cells):
98 ax.table(
99 colWidths=colWidths,
100 cellText=cellText,
101 loc='center',
102 edges=cell,
103 )
104 ax.axis('off')
105
106
107def test_customcell():

Callers

nothing calls this directly

Calls 2

subplotsMethod · 0.45
axisMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…