February 2024
Intermediate to advanced
292 pages
4h 11m
Chinese
本附录列出了一些常用函数并根据其所属程序包进行组织,这些程序包涉及matplotlib、NumPy、Pandas、scikit-learn和SciPy。
下面是常用的matplotlib函数。
matplotlib.pyplot.axis(*v, **kwargs):该函数用于获取或者设置坐标轴属性。例如,axis('off')表示关闭坐标轴线及其标签。matplotlib.pyplot.figure(num=None, figsize=None, dpi=None, facecolor=None, edgecolor=None, frameon=True, FigureClass=<class 'matplotlib.figure.Figure'>, **kwargs):这个函数用于新建一个图像。matplotlib.pyplot.grid(b=None, which='major', axis='both', **kwargs):这个函数用于打开或者关闭图像中的网格线。matplotlib.pyplot.hist(x, bins=10, range=None, normed=False, weights=None, cumulative=False, bottom=None, histtype='bar', align='mid', orientation ='vertical', rwidth=None, log=False, color=None, label=None, stacked=False, hold=None, **kwargs):这个函数用于绘制直方图。matplotlib.pyplot.imshow(X, ...Read now
Unlock full access