Python: Matplotlib plot types 常用图表类型及绘图命令
Plot types
https://matplotlib.org/stable/plot_types/#plot-types
Overview of many common plotting commands in Matplotlib.
Note that we have stripped all labels, but they are present by default. See the gallery for many more examples and the tutorials page for longer examples.
Basic
Basic plot types, usually y versus x.
Plots of arrays and fields
Plotting for arrays of data Z(x, y)
and fields U(x, y), V(x, y)
.
Statistics plots
Plots for statistical analysis.
Unstructured coordinates
Sometimes we collect data z
at coordinates (x,y)
and want to visualize
as a contour. Instead of gridding the data and then using
contour
, we can use a triangulation algorithm and fill the
triangles.
3D
3D plots using the mpl_toolkits.mplot3d
library.