![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
matplotlib
csdn_sbregister
这个作者很懒,什么都没留下…
展开
-
matplotlib的subplot使用
官方docs:https://matplotlib.org/api/_as_gen/matplotlib.pyplot.subplots.html?highlight=subplots#matplotlib.pyplot.subplots matplotlib.pyplot.subplots Create a figure and a set of subplots 调用su原创 2017-12-14 15:11:26 · 487 阅读 · 0 评论 -
matplotlib plot python rgb2gry 显示灰度图像
使用plt.imshow()显示的时候要注意,设置cmap参数为‘gray’ 第一种方法,使用PIL的Image模块 from PIL import Image lena_gray = Image.open('lena.jpg').convert('L') plt.imshow(lena_gray, cmap='gray') 第二种方法,直接计算:import numpy as np原创 2017-12-27 14:57:36 · 6232 阅读 · 0 评论