New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug on the pyplot.table colColours property (version 1.3.0) #4960
Comments
I am not seeing any problems with this in the development branch. Without images, though, I can't be sure exactly what you mean by "first row got collapsed with the column labels row". |
@WeatherGod beat me to it ;) but anyway Can you test that with master or at least 1.4.3 I can't reproduce the problem on master as far as I understand the issue. Here is what I see |
@jenshnielsen , is it just me, or is the alignment of the text all screwy? |
It could certainly be better, not sure if that is a new thing. I usually never use plt.table |
When trying to set colors for the label columns in the table method the first row got collapsed with the columns labels row.
Test code:
from matplotlib import pyplot as plt
data=[[1,2,3],[4,5,6],[7,8,9]]; labels=['A', 'B', 'C']; colors=['r', 'g', 'b'];
"PROBLEM"
plt.table(cellText=data, rowLabels=labels, colLabels=labels, loc='center', colColours=colors); plt.axis('off'); plt.show()
"GOT CORRECT"
plt.table(cellText=data, rowLabels=labels, colLabels=labels, loc='center', rowColours=colors); plt.axis('off'); plt.show()
The text was updated successfully, but these errors were encountered: