Convert *x* using the unit type of the xaxis. If the artist is not contained in an Axes or if the xaxis does not have units, *x* itself is returned.
(self, x)
| 275 | return ax and any(axis.have_units() for axis in ax._axis_map.values()) |
| 276 | |
| 277 | def convert_xunits(self, x): |
| 278 | """ |
| 279 | Convert *x* using the unit type of the xaxis. |
| 280 | |
| 281 | If the artist is not contained in an Axes or if the xaxis does not |
| 282 | have units, *x* itself is returned. |
| 283 | """ |
| 284 | ax = getattr(self, 'axes', None) |
| 285 | if ax is None or ax.xaxis is None: |
| 286 | return x |
| 287 | return ax.xaxis.convert_units(x) |
| 288 | |
| 289 | def convert_yunits(self, y): |
| 290 | """ |
no test coverage detected