關於matplotlib及相關cmap參數的取值

關於matplotlib及相關cmap參數的取值 在matplotlib中對於圖片的顯示有如下方法(這不是重點), 其中有cmap=‘binary’的參數。 plt.imshow(imgs[i].reshape(28, 28), cmap='binary') #或如下:也可以達到相同的效果 plt.imshow(imgs[i].reshape(28, 28), cmap=plt.get_cmap(
相關文章
相關標籤/搜索