Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
well, the columns here should be rows, as we want to give different colors by row index. there is no problem in this example, because the matrix here is 5*5. But if the length of rows is bigger than that of columns, it will raise Exception, such as plt.bar(index, data[row], bar_width, bottom=y_offset, color=colors[row]) IndexError: index 2 is out of bounds for axis 0 with size 2
- Loading branch information