最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Matplotlib - text through multiple cells - Stack Overflow

programmeradmin3浏览0评论

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("")

发布评论

评论列表(0)

  1. 暂无评论