Returns ------- transform : Transform The transform used for drawing x-axis labels, which will add *pad_points* of padding (in points) between the axis and the label. The x-direction is in data coordinates and the y-direction is in
(self, pad_points)
| 997 | raise ValueError(f'unknown value for which: {which!r}') |
| 998 | |
| 999 | def get_xaxis_text1_transform(self, pad_points): |
| 1000 | """ |
| 1001 | Returns |
| 1002 | ------- |
| 1003 | transform : Transform |
| 1004 | The transform used for drawing x-axis labels, which will add |
| 1005 | *pad_points* of padding (in points) between the axis and the label. |
| 1006 | The x-direction is in data coordinates and the y-direction is in |
| 1007 | axis coordinates |
| 1008 | valign : {'center', 'top', 'bottom', 'baseline', 'center_baseline'} |
| 1009 | The text vertical alignment. |
| 1010 | halign : {'center', 'left', 'right'} |
| 1011 | The text horizontal alignment. |
| 1012 | |
| 1013 | Notes |
| 1014 | ----- |
| 1015 | This transformation is primarily used by the `~matplotlib.axis.Axis` |
| 1016 | class, and is meant to be overridden by new kinds of projections that |
| 1017 | may need to place axis elements in different locations. |
| 1018 | """ |
| 1019 | labels_align = mpl.rcParams["xtick.alignment"] |
| 1020 | return (self.get_xaxis_transform(which='tick1') + |
| 1021 | mtransforms.ScaledTranslation( |
| 1022 | 0, -1 * pad_points / 72, |
| 1023 | self.get_figure(root=False).dpi_scale_trans), |
| 1024 | "top", labels_align) |
| 1025 | |
| 1026 | def get_xaxis_text2_transform(self, pad_points): |
| 1027 | """ |
no test coverage detected