Matplotlib python примеры графиков

Examples#

This page contains example plots. Click on any image to see the full image and source code.

For longer tutorials, see our tutorials page . You can also find external resources and a FAQ in our user guide .

Lines, bars and markers#

Images, contours and fields#

Subplots, axes and figures#

Statistics#

Pie and polar charts#

Text, labels and annotations#

The pyplot module#

Color#

For more in-depth information about the colormaps available in matplotlib as well as a description of their properties, see the colormaps tutorial .

Shapes and collections#

Style sheets#

The axes_grid1 module#

The axisartist module#

Showcase#

Animation#

Event handling#

Matplotlib supports event handling with a GUI neutral event model, so you can connect to Matplotlib events without knowledge of what user interface Matplotlib will ultimately be plugged in to. This has two advantages: the code you write will be more portable, and Matplotlib events are aware of things like data coordinate space and which axes the event occurs in so you don’t have to mess with low level transformation details to go from canvas space to data space. Object picking examples are also included.

Источник

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.

Читайте также:  Opencv cvtcolor python bgr2gray

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.

Источник

Оцените статью