Commit 2590d98
committed
Correctly pass location when constructing ImageGrid colorbar.
Previously only the orientation would be passed, so information on
whether the colorbar is on the top or the right would lost, resulting in
ticks, ticklabels, and label being on the wrong side of the colorbar.
Fix that.
The baseline image changes exactly test that (the colorbar ticks move to
the other side). While at it, also simplify the plotted data in
test_imagegrid_cbar_mode, which decreases more than 2x the size of the
baseline image (86K -> 34K).1 parent b61bb0b commit 2590d98
File tree
4 files changed
+9
-22
lines changed- lib/mpl_toolkits/axes_grid1
- tests
- baseline_images/test_axes_grid1
4 files changed
+9
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
32 | 28 | | |
33 | 29 | | |
34 | 30 | | |
35 | 31 | | |
36 | 32 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | 33 | | |
43 | 34 | | |
44 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
701 | 701 | | |
702 | 702 | | |
703 | 703 | | |
704 | | - | |
705 | | - | |
706 | | - | |
707 | | - | |
708 | | - | |
| 704 | + | |
709 | 705 | | |
710 | 706 | | |
711 | 707 | | |
| |||
721 | 717 | | |
722 | 718 | | |
723 | 719 | | |
724 | | - | |
| 720 | + | |
725 | 721 | | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
730 | 726 | | |
731 | 727 | | |
732 | 728 | | |
| |||
0 commit comments