Commit 6a70beb
committed
Make all parameters of ColorbarBase, except
This is consistent with Colorbar. Moreover, this will make it possibly
to ultimately merge Colorbar into ColorbarBase -- currently, they only
differ by the fact that a ColorbarBase doesn't have an associated
ScalarMappable, but we can just construct an empty ScalarMappable in
that case (this is already what we document as recommended approach to
construct colorbars not attached to an artist --
`fig.colorbar(ScalarMappable(norm=..., cmap=...))`. Right now this
merging is *nearly* possible except for the fact that the constructors'
signatures are a pain to combine.ax, keyword-only.1 parent f369b10 commit 6a70beb
3 files changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
| 397 | + | |
397 | 398 | | |
398 | 399 | | |
399 | 400 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
| 229 | + | |
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| |||
0 commit comments