Returns ------- transform : Transform The transform used for drawing y-axis labels, which will add *pad_points* of padding (in points) between the axis and the label. The x-direction is in axis coordinates and the y-direction is in
(self, pad_points)
| 1079 | raise ValueError(f'unknown value for which: {which!r}') |
| 1080 | |
| 1081 | def get_yaxis_text1_transform(self, pad_points): |
| 1082 | """ |
| 1083 | Returns |
| 1084 | ------- |
| 1085 | transform : Transform |
| 1086 | The transform used for drawing y-axis labels, which will add |
| 1087 | *pad_points* of padding (in points) between the axis and the label. |
| 1088 | The x-direction is in axis coordinates and the y-direction is in |
| 1089 | data coordinates |
| 1090 | valign : {'center', 'top', 'bottom', 'baseline', 'center_baseline'} |
| 1091 | The text vertical alignment. |
| 1092 | halign : {'center', 'left', 'right'} |
| 1093 | The text horizontal alignment. |
| 1094 | |
| 1095 | Notes |
| 1096 | ----- |
| 1097 | This transformation is primarily used by the `~matplotlib.axis.Axis` |
| 1098 | class, and is meant to be overridden by new kinds of projections that |
| 1099 | may need to place axis elements in different locations. |
| 1100 | """ |
| 1101 | labels_align = mpl.rcParams["ytick.alignment"] |
| 1102 | return (self.get_yaxis_transform(which='tick1') + |
| 1103 | mtransforms.ScaledTranslation( |
| 1104 | -1 * pad_points / 72, 0, |
| 1105 | self.get_figure(root=False).dpi_scale_trans), |
| 1106 | labels_align, "right") |
| 1107 | |
| 1108 | def get_yaxis_text2_transform(self, pad_points): |
| 1109 | """ |
no test coverage detected