matplotlib.axes.Axes.get_xaxis_transform#
- Axes.get_xaxis_transform(which='grid')[source]#
Get the transformation used for drawing x-axis labels, ticksand gridlines. The x-direction is in data coordinates and they-direction is in axis coordinates.
Note
This transformation is primarily used by the
Axis
class, and is meant to beoverridden by new kinds of projections that may need toplace axis elements in different locations.- Parameters:
- which{'grid', 'tick1', 'tick2'}
Examples usingmatplotlib.axes.Axes.get_xaxis_transform
#
On this page