1.matplotlib
There are four coordinates:
- User-level
data
coordinate system: the coordinate transformation objectax.transData
. It is the user's coordinate system byxlim
andylim
control Axes
Coordinate systems: coordinate transformation objectax.transAxes
. It is aAxes
coordinate system(0,0)
for theAxes
lower left corner(1,1)
toAxes
the upper right corner.Figure
Coordinate systems: coordinate transformation objectfig.transFigure
. It is aFigure
coordinate system(0,0)
for theFigure
lower left corner(1,1)
toFigure
the upper right corner.display
Coordinate system: It does not coordinate transformation object. It shows thedisplay
pixel coordinate system(0,0)
for thedisplay
lower left corner(width,height)
todisplay
the 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 display
coordinates in the coordinate system. (Thus display
the coordinate system without coordinate conversion target). Of course, they also related to a method from display
the coordinate system of conversion back to the coordinates within this coordinate system.