matplotlib
文章平均质量分 58
NockinOnHeavensDoor
blog已不用~谢谢关注~
展开
-
matplotlib : axes.scatter
Axes.scatter(x, y, s=None, c=None, marker=None, cmap=None, norm=None, vmin=None, vmax=None, alpha=None, linewidths=None, verts=None, edgecolors=None, *, data=None, **kwargs)Make a scatter plot of x vs原创 2017-12-20 16:35:52 · 670 阅读 · 0 评论 -
matplotlib: pyplot.legend
参考:官网在轴上画一个图示(legend) 比如:fig, ax = plt.subplots()ax.plot([1,2,3])ax.legend(['A simple Line'])plt.show()为了让标签和所画图的联系更明确,更好的做法是在画图的时候就设置标签 line, = ax.plot([1, 2, 3], label=’Inline label’) 或者通过set_l原创 2017-12-21 14:05:17 · 3368 阅读 · 0 评论 -
matplotlib.pyplot.subplots
matplotlib.pyplot.subplots原创 2017-12-14 11:05:52 · 722 阅读 · 0 评论 -
matplotlib:随机点选取标记
import numpy as npmean = [0 , 0]cov = [[1,2], [2,5]]"""多元正态分布中生成数据"""X = rand.multivariate_normal(mean, cov,100)X.shape(100, 2)%matplotlib inlineimport matplotlib.pyplot as pl...原创 2018-04-09 19:59:50 · 1317 阅读 · 1 评论 -
matplotlib: matplotlib.gridspec
matplotlib.gridspec: gridspec is a module which specifies the location of the subplot in the figure. gridspec是用来给图片分格的import matplotlib.pyplot as pltimport matplotlib.gridspec as gridspec使用pl...原创 2018-04-27 22:07:52 · 1015 阅读 · 0 评论 -
matplotlib:plt.rcParams设置画图的分辨率,大小等信息
摘要:主要作用是设置画的图的分辨率,大小等信息plt.rcParams['figure.figsize'] = (8.0, 4.0) # 设置figure_size尺寸plt.rcParams['image.interpolation'] = 'nearest' # 设置 interpolation styleplt.rcParams['image.cmap'] = 'gray' # ...原创 2018-06-04 12:33:17 · 34956 阅读 · 3 评论 -
转:Contours画高线图
参考:https://morvanzhou.github.io/tutorials/data-manipulation/plt/3-3-contours/import matplotlib.pyplot as pltimport numpy as npplt.rcParams['figure.dpi']=300plt.rcParams['savefig.dpi'] = 300def f...转载 2018-06-04 12:57:49 · 695 阅读 · 0 评论 -
scipy.optimize.curve_fit 与 matplotlib.pyplot.hist 直方图和密度图
matplotlib.pyplot.hist( x, bins=10, range=None, normed=False, weights=None, cumulative=False, bottom=None, histtype=u'bar', align=u'mid', orientation=u'vertical', rwidth...原创 2019-03-25 19:23:00 · 839 阅读 · 0 评论