📜  Python中的 Matplotlib.pyplot.get_plot_commands()

📅  最后修改于: 2022-05-13 01:55:20.687000             🧑  作者: Mango

Python中的 Matplotlib.pyplot.get_plot_commands()

Matplotlib是Python中的一个库,它是 NumPy 库的数值数学扩展。 Pyplot是 Matplotlib 模块的基于状态的接口,它提供了一个类似 MATLAB 的接口。在 Pyplot 中可以使用各种图,包括线图、等高线图、直方图、散点图、3D 图等。

matplotlib.pyplot.get_plot_commands() 方法

matplotlib 库的 pyplot 模块中的get_plot_commands() 方法用于获取所有绘图命令的排序列表。

下面的示例说明了 matplotlib.pyplot 中的 matplotlib.pyplot.get_plot_commands()函数:

例子:

# Implementation of matplotlib function
import numpy as np
import matplotlib.pyplot as plt
  
     
w = plt.get_plot_commands()
  
print("List of all of the plotting commands : ")
for i in w:
    print(i)

输出:

List of all of the plotting commands : 
acorr
angle_spectrum
annotate
arrow
autoscale
axes
axhline
axhspan
axis
axvline
axvspan
bar
barbs
barh
box
boxplot
broken_barh
cla
clabel
clf
clim
close
cohere
colorbar
contour
contourf
csd
delaxes
draw
errorbar
eventplot
figimage
figlegend
fignum_exists
figtext
figure
fill
fill_between
fill_betweenx
findobj
gca
gcf
gci
get_figlabels
get_fignums
grid
hexbin
hist
hist2d
hlines
imread
imsave
imshow
install_repl_displayhook
ioff
ion
isinteractive
legend
locator_params
loglog
magnitude_spectrum
margins
matshow
minorticks_off
minorticks_on
pause
pcolor
pcolormesh
phase_spectrum
pie
plot
plot_date
plotfile
polar
psd
quiver
quiverkey
rc
rc_context
rcdefaults
rgrids
savefig
sca
scatter
sci
semilogx
semilogy
set_cmap
setp
show
specgram
spy
stackplot
stem
step
streamplot
subplot
subplot2grid
subplot_tool
subplots
subplots_adjust
suptitle
switch_backend
table
text
thetagrids
tick_params
ticklabel_format
tight_layout
title
tricontour
tricontourf
tripcolor
triplot
twinx
twiny
uninstall_repl_displayhook
violinplot
vlines
xcorr
xkcd
xlabel
xlim
xscale
xticks
ylabel
ylim
yscale
yticks