plt.imshow()

import matplotlib.pyplot as plt
plt.imshow(digits.images[-1], cmap = plt.cm.gray_r)

.imshow()

Plotting numpy arrays as images

plt.cm.gray_r

Colormap

加上_r相当于颜色 reverse

posted @ 2017-06-22 11:09  2021年的顺遂平安君  阅读(71)  评论(0编辑  收藏  举报