Convert *y* using the unit type of the yaxis. If the artist is not contained in an Axes or if the yaxis does not have units, *y* itself is returned.
(self, y)
| 287 | return ax.xaxis.convert_units(x) |
| 288 | |
| 289 | def convert_yunits(self, y): |
| 290 | """ |
| 291 | Convert *y* using the unit type of the yaxis. |
| 292 | |
| 293 | If the artist is not contained in an Axes or if the yaxis does not |
| 294 | have units, *y* itself is returned. |
| 295 | """ |
| 296 | ax = getattr(self, 'axes', None) |
| 297 | if ax is None or ax.yaxis is None: |
| 298 | return y |
| 299 | return ax.yaxis.convert_units(y) |
| 300 | |
| 301 | @property |
| 302 | def axes(self): |
no test coverage detected