画像表示 matplotlib



source code


import matplotlib.pyplot as plt
import matplotlib.image as mpimg
img = mpimg.imread('mydog2020.PNG')
imgplot = plt.imshow(img)
plt.show()


コメント

このブログの人気の投稿

What are sequence types in Python?

The Zen of Python

シェルピンスキーの三角形