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 theAxis 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#

Fill the area between two lines

Fill the area between two lines

hlines and vlines

hlines and vlines

Centered spines with arrows

Centered spines with arrows

Boxplots

Boxplots

Scale invariant angle label

Scale invariant angle label