上一页 1 2 3 4 5 6 7 8 9 10 ··· 19 下一页
摘要: import cv2 import matplotlib.pyplot as plt image = cv2.imread('image.jpg') plt.imshow(image) plt.axis('off') plt.show() #读入并显示图片 image = cv2.cvtColor( 阅读全文
posted @ 2020-08-30 09:06 yunshangyue 阅读(181) 评论(0) 推荐(0) 编辑
摘要: import matplotlib.pyplot as plt import numpy as np import pandas as pd ''' ax[0,0].plot/bar/pie/hist/barh/ 直接来。两种方法都是 有两种方法: 方法1: fig = plt.figure(fig 阅读全文
posted @ 2020-08-30 09:04 yunshangyue 阅读(408) 评论(0) 推荐(0) 编辑
摘要: plt.figure(facecolor = 'w') #面板分成3类 cm_light = mpl.colors.ListedColormap(['#77E0A0', '#FF8080', '#A0A0FF']) #根据y的不同,填充颜色也不同 plt.pcolormesh(x1, x2, y_h 阅读全文
posted @ 2020-08-30 09:00 yunshangyue 阅读(319) 评论(0) 推荐(0) 编辑
摘要: def color(): most_use={'red':'r', 'green':'g', 'bule':'b', 'black':'k'} cmaps_or_colormaps ={ 'Perceptually_Uniform_Sequential' : [ 'viridis', 'plasma 阅读全文
posted @ 2020-08-30 08:53 yunshangyue 阅读(1992) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- import time import matplotlib.pyplot as plt import matplotlib import numpy as np import pandas as pd from pylab import mpl mpl 阅读全文
posted @ 2020-08-30 08:51 yunshangyue 阅读(2085) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-08-30 08:49 yunshangyue 阅读(287) 评论(0) 推荐(0) 编辑
摘要: # 分组 df = pd.DataFrame({'A' : ['foo', 'bar', 'foo', 'bar','foo', 'bar', 'foo', 'foo'], 'B' : ['one', 'one', 'two', 'three', 'two', 'two', 'one', 'thre 阅读全文
posted @ 2020-08-30 08:46 yunshangyue 阅读(286) 评论(0) 推荐(0) 编辑
摘要: import matplotlib.pyplot as plt import numpy as np def graph_basic_args(): args_name = { 'linestyle' : ['-','-.','--',':'],#直线,点化线,虚线,点(包含全了) 'linewid 阅读全文
posted @ 2020-08-30 08:45 yunshangyue 阅读(287) 评论(0) 推荐(0) 编辑
摘要: # 图表窗口1 → plt.show() plt.plot(np.random.rand(10)) plt.show() # 直接生成图表 # 图表窗口2 → 魔法函数,嵌入图表,好像是jupyter notebook才可以 % matplotlib inline x = np.random.ran 阅读全文
posted @ 2020-08-30 08:43 yunshangyue 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-08-30 08:42 yunshangyue 阅读(97) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 19 下一页