没有合适的资源?快使用搜索试试~ 我知道了~
首页matplotlib 函数手册
matplotlib 函数手册
需积分: 26 316 浏览量
更新于2023-05-24
评论
收藏 1014KB PDF 举报
matplotlib 函数手册,acorr,annotate,arrow,axes ...
资源详情
资源评论
资源推荐

matplotlib 函数手册
星猫译

函数
介绍
acorr
Plot the autocorrelation of x.绘制 X 的自相关
annotate
Create an annotation: a piece of text referring to a data
point.
用箭头在指定的一个数据点创建一个注释或一段文本。
arrow
Add an arrow to the axes.为 axes 添加一个箭头。
autoscale
Autoscale the axis view to the data (toggle).自动缩放轴视图的
数据(切换)。
axes
Add an axes to the figure.为当前 figure 添加一个 axes。
axhline
Add a horizontal line across the axis.添加一条穿越 axis 的水平
线。
axhspan
Add a horizontal span (rectangle) across the axis.添加一条穿
越 axis 的水平矩形。
axis
Convenience method to get or set axis properties.获取或设置轴
属性的便捷方法。
axvline
Add a vertical line across the axes.添加一条穿越 axes 的垂线。
axvspan
Add a vertical span (rectangle) across the axes.添加一个与
axes 交叉的垂直跨度(矩形)。
bar
Make a bar plot.做一个垂直条形图。
barbs
Plot a 2-D field of barbs.绘制一个倒钩的二维场(风场)。
barh
Make a horizontal bar plot.做一个横向条形图。
box
Turn the axes box on or off.打开或关闭主轴箱。
boxplot
Make a box and whisker plot.使一盒须图。
broken_barh
Plot horizontal bars.绘制水平杆。
cla
Clear the current axes.清除当前 axes。
clabel
Label a contour plot.
为等值线图设标签
clf
Clear the current figure.清除当前 figure。
clim
Set the color limits of the current image.设置当前图像的颜色
取值范围。
close
Close a figure window.关闭 figure 窗口。
cohere
Plot the coherence between x and y.绘制 X 和 Y 之间的相关性分
析

colorbar
Add a colorbar to a plot.为图添加彩条标值。
contour
Plot contours.绘制等值线。
contourf
Plot contours.绘制填充等值线。
csd
Plot cross-spectral density.绘制交叉谱密度。
delaxes
Remove an axes from the current figure.从目前的 figure 删除
axes。
draw
Redraw the current figure.再次绘制当前 figure。
errorbar
Plot an errorbar graph.绘制 errorbar 图。
eventplot
Plot identical parallel lines at specific positions.在特定的
位置绘制相同的平行线。
figimage
Adds a non-resampled image to the figure.为 figure 添加一个非
重采样图像。
figlegend
Place a legend in the figure.为 figure 放置一个标注(legend)
figtext
Add text to figure.为 figure 添加文字。
figure
Creates a new figure.创建一个新的 figure。
fill
Plot filled polygons.绘制填充多边形。
fill_between
Make filled polygons between two curves.使两曲线间填充色彩。
fill_betweenx
Make filled polygons between two horizontal curves.使两水平线
间填充色彩。
findobj
Find artist objects.发现 artist 对象。
gca
Return the current axis instance.返回当前轴实例(axis
instance)。
gcf
Return a reference to the current figure.返回当前 figure 的序
号。
gci
Get the current colorable artist.获取当前彩条的 artist。
get_figlabels
Return a list of existing figure labels.返回一个当前 figure 的
标签列表。
get_fignums
Return a list of existing figure numbers.返回一系列 figure 的
序号。
grid(on/off)
Turn the axes grids on or off.打开或关闭坐标网格。
hexbin
Make a hexagonal binning plot.做一个六边形箱图。
hist
Plot a histogram.绘制直方图。
hist2d
Make a 2D histogram plot.使一个二维直方图。

hlines
Plot horizontal lines.绘制水平线。
hold
Set the hold state.设置 hold 状态。
imread
Read an image from a file into an array.读取一个图像,从图形
文件中提取数组。
imsave
Save an array as in image file.保存为图像文件中的数组。
imshow
Display an image on the axes.在 axes 上显示图像。
ioff
Turn interactive mode off. 关闭互动模式。
ion
Turn interactive mode on.开启互动模式。
ishold
Return the hold status of the current axes.返回当前 axes 的
hold 状态。
isinteractive
Return status of interactive mode.返回互动模式状态。
legend
Place a legend on the current axes.为当前 axes 放置标注。
locator_params
Control behavior of tick locators.控制轴刻度标签
loglog
Make a plot with log scaling on both the x and y axis.使 X、
Y 轴为 log 刻度。
margins
Set or retrieve autoscaling margins.设置或检索自动缩放功能。
matshow
Display an array as a matrix in a new figure window.在新
figure 窗口显示数组矩阵
minorticks_off
Remove minor ticks from the current plot.移除当前数轴上的次刻
度
minorticks_on
Display minor ticks on the current plot.显示当前数轴上的次刻
度
over
Call a function with hold(True).调用一个函数,并且 hold 为
(True)。
pause
Pause for interval seconds.Pause 的时间间隔(秒)。
pcolor
Create a pseudocolor plot of a 2-D array.创建一个二维阵列的伪
彩色图。
pcolormesh
Plot a quadrilateral mesh.绘制一个四边形网格。
pie
Plot a pie chart.绘制一个饼图。
plot
Plot lines and/or markers to the Axes.绘制当前 axes。
plot_date
Plot with data with dates.绘制数据日期。
plotfile
Plot the data in in a file.将图绘入文件
polar
Make a polar plot.绘制极坐标图。

psd
Plot the power spectral density.绘制功率谱密度图。
quiver
Plot a 2-D field of arrows.绘制二维箭头图(风矢量图)。
quiverkey
Add a key to a quiver plot.为风矢量图绘制单位标量
rc
Set the current rc params.设置当前的 RC 参数。
rc_context
Return a context manager for managing rc settings.返回一个用
于管理 RC 设置上下文管理器。
rcdefaults
Restore the default rc params.恢复默认的 RC 参数。
rgrids
Get or set the radial gridlines on a polar plot.获取或设置径
向网格在极坐标图。
savefig
Save the current figure.保存当前图。
sca
Set the current Axes instance to ax.为 ax 设置当前(axes)轴实
例。
scatter
Make a scatter plot of x vs y, where x and y are sequence
like objects of the same lengths.做一个 X 和 Y 的散点图,其中
X 和 Y 是相同长度的序列的对象。
sci
Set the current image.设置当前的图像。
semilogx
Make a plot with log scaling on the x axis.使 x 轴为 log 刻度。
semilogy
Make a plot with log scaling on the y axis.使 y 轴为 log 刻度。
set_cmap
Set the default colormap.设置默认的 colormap。
setp
Set a property on an artist object.对 artist 对象设置属性。
show
Display a figure.显示图。
specgram
Plot a spectrogram.绘制谱图。
spy
Plot the sparsity pattern on a 2-D array.绘制一个二维阵列的稀
疏模式。
stackplot
Draws a stacked area plot.绘制一个堆叠面积图。
stem
Create a stem plot.创造一个 stem 图。
step
Make a step plot.做一个步阶图
streamplot
Draws streamlines of a vector flow.绘制一个流场图。
subplot
Return a subplot axes positioned by the given grid
definition.返回一个 subplot axes
subplot2grid
Create a subplot in a grid.在网格中创建一个 subplot。
subplot_tool
Launch a subplot tool window for a figure.获取 subplot 工具窗
口。
剩余76页未读,继续阅读
















安全验证
文档复制为VIP权益,开通VIP直接复制

评论0