
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 · 583 阅读 · 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 · 6335 阅读 · 0 评论