Issue
I am trying to center the text inside a matplotlib table cell, while the default seems to be right aligned. I looked through the documentation of the Table object, but I could not find anything useful in this.
Is there an easy way to achieve the centering?
Solution
Try editing the sample here
Adding
cellLoc='center'
To
the_table = plt.table(cellText=cell_text,
rowLabels=rows,
rowColours=colors,
colLabels=columns,
loc='bottom')
To get
Answered By - willo
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.