Return colorbar data coordinates for *N* uniformly spaced boundaries, plus extension lengths if required.
(self, N)
| 1233 | # trivial helpers |
| 1234 | |
| 1235 | def _uniform_y(self, N): |
| 1236 | """ |
| 1237 | Return colorbar data coordinates for *N* uniformly |
| 1238 | spaced boundaries, plus extension lengths if required. |
| 1239 | """ |
| 1240 | automin = automax = 1. / (N - 1.) |
| 1241 | extendlength = self._get_extension_lengths(self.extendfrac, |
| 1242 | automin, automax, |
| 1243 | default=0.05) |
| 1244 | y = np.linspace(0, 1, N) |
| 1245 | return y, extendlength |
| 1246 | |
| 1247 | def _proportional_y(self): |
| 1248 | """ |
no test coverage detected