[Python] Matplotlib Table - long text overlaps over multiple cells

Discussão em 'Python' iniciado por Stack, Julho 7, 2025.

  1. Stack

    Stack Membro Participativo

    Is it possible to place long text that will be printed over the cells? I tried that but it doesnt work, fontsize is decreasing to put all text to one cell.

    if truncated:
    for col in range(num_cols):
    cell = table[(num_rows, col)]
    if col == 0:
    text = cell.get_text()
    text.set_text("NOT ALL DATA")
    text.set_clip_on(False)
    text.set_ha('left')
    text.set_fontsize(8)
    else:
    cell.get_text().set_text("")


    [​IMG]

    Continue reading...

Compartilhe esta Página