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

相关文章:

  • 2021-06-25
  • 2022-12-23
  • 2021-05-11
  • 2021-11-19
  • 2021-07-14
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-21
  • 2022-12-23
  • 2022-12-23
  • 2021-04-21
  • 2022-12-23
  • 2021-12-17
相关资源
相似解决方案