Commit 277b5eb
committed
Redo colorbar overhaul.
Previous overhaul packaged an inner and outer axes in a container
"ColorbarAxes" and tried to dispatch methods between them.
This overhaul takes the _much_ simpler approach of resizing the
image using a custom _axes_locator that a) calls any existing locator
b) or just uses the axes default position. The custom _axes_locator
then shrinks the axes in the appropriate direction to make room for
extend tri/rectangles. As with the previous fix, the extend
tri/rectangles are drawn as patches in axes co-ordinates, rather than
pcolormesh in "data" co-ordinates.1 parent 8c764dc commit 277b5eb
File tree
14 files changed
+564
-565
lines changed- doc/api/next_api_changes/behavior
- lib
- matplotlib
- axes
- tests
- baseline_images
- test_axes
- test_colorbar
- test_contour
- mpl_toolkits/axes_grid1
14 files changed
+564
-565
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | 1 | | |
14 | 2 | | |
15 | 3 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
575 | 575 | | |
576 | 576 | | |
577 | 577 | | |
578 | | - | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
579 | 583 | | |
580 | 584 | | |
581 | 585 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2380 | 2380 | | |
2381 | 2381 | | |
2382 | 2382 | | |
| 2383 | + | |
| 2384 | + | |
2383 | 2385 | | |
2384 | 2386 | | |
2385 | 2387 | | |
| |||
0 commit comments