matplotlib --- coordinate transformation

1.matplotlibThere are four coordinates:

  • User-level datacoordinate system: the coordinate transformation object ax.transData. It is the user's coordinate system by xlimand ylimcontrol
  • AxesCoordinate systems: coordinate transformation object ax.transAxes. It is a Axescoordinate system (0,0)for the Axeslower left corner (1,1)to Axesthe upper right corner.
  • FigureCoordinate systems: coordinate transformation object fig.transFigure. It is a Figurecoordinate system (0,0)for the Figurelower left corner (1,1)to Figurethe upper right corner.
  • displayCoordinate system: It does not coordinate transformation object. It shows the displaypixel coordinate system (0,0)for the displaylower left corner (width,height)to displaythe upper right corner.

In front of the object coordinate conversion coordinate system has three coordinate conversion method is performed, these methods accept input and generating output: input coordinate points present within a coordinate system, the output of displaycoordinates in the coordinate system. (Thus displaythe coordinate system without coordinate conversion target). Of course, they also related to a method from displaythe coordinate system of conversion back to the coordinates within this coordinate system.

Guess you like

Origin www.cnblogs.com/nxf-rabbit75/p/12099135.html