(self, x)
| 1160 | return (Y, X) |
| 1161 | |
| 1162 | def _forward_boundaries(self, x): |
| 1163 | # map boundaries equally between 0 and 1... |
| 1164 | b = self._boundaries |
| 1165 | y = np.interp(x, b, np.linspace(0, 1, len(b))) |
| 1166 | # the following avoids ticks in the extends: |
| 1167 | eps = (b[-1] - b[0]) * 1e-6 |
| 1168 | # map these _well_ out of bounds to keep any ticks out |
| 1169 | # of the extends region... |
| 1170 | y[x < b[0]-eps] = -1 |
| 1171 | y[x > b[-1]+eps] = 2 |
| 1172 | return y |
| 1173 | |
| 1174 | def _inverse_boundaries(self, x): |
| 1175 | # invert the above... |