Matplotlib three-tier structure

Matplotlib three-layer structure
of the container layer: mainly by the Canvas, Figure, Axes composition.
      Canvas is located at the bottom of the layer system, in the process acts as Artboards role in the drawing, i.e., placing the canvas (Figure) of the tool.
      Figure above the Canvas is the first layer, the first layer is the application layer requires a user to operate, act as canvas during the drawing.
      Axes of the second layer is the application layer, the role corresponding to the drawing area of the drawing on the canvas of the process.
     Figure: refers to the entire pattern (can () provided by the canvas plt.figure size and resolution, etc.)
             Axes (coordinates): drawing area data is
            the Axis (axes): a-axis coordinate system, comprising a size limit, scale scale labels and
     Precautions: 
            a Figure (canvas) may comprise a plurality of axes (coordinates / drawing area), but only a part of axes a figure.
            A axes (coordinates / drawing area) may comprise a plurality of Axis (axis), comprising two coordinate systems is the 2d, 3d is the three coordinate systems.
Auxiliary display layer of
       the auxiliary display layer is a content other than the image drawn based on data in Axes (plot area), including Axes appearance (facecolor), Border Line (Spines), the axes (axis), the coordinate axis name (axis label), the axis scale (tick), axis scale labels (tick label), grid lines (grid), legend (legend), title (title) and so on.
The image display layer is provided can be more intuitive and easier to understand the user, but does not affect the substance of the image.

Image layer
       image layer refers to a plot, scatter, bar, histogram the Axes, pie and other functions based on data of the image drawn.

Summary
      Canvas (Artboards) lies at the bottom, the user typically reach
      Figure (canvas) based on Canvas
      Axes (plot area) based on Figure
      axis (Axis), legend (Legend) and the image display layer and other auxiliary layers They are based on Axes

More technical information may concern: gzitcast

Guess you like

Origin www.cnblogs.com/heimaguangzhou/p/11511838.html