| 89 | |
| 90 | @image_comparison(['table_cell_manipulation.png'], style='mpl20') |
| 91 | def 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 | |
| 107 | def test_customcell(): |