Commit 85dfccd
committed
BUGS: in colorbar: divide-by-zero, and undesired masked array
Closes #8534 (divide-by-zero warning).
Also fixes a bug that became evident with #8801, which causes
pcolormesh to fail if X or Y is a masked array. Although masked
arrays are not supported by pcolormesh, previously it would ignore
the mask. Locators always return masked arrays, so the present
commit explicitly converts to an ndarray the Locator output used
by proportional colorbars.1 parent ee030cb commit 85dfccd
1 file changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
801 | 801 | | |
802 | 802 | | |
803 | 803 | | |
| 804 | + | |
804 | 805 | | |
805 | 806 | | |
806 | 807 | | |
| |||
811 | 812 | | |
812 | 813 | | |
813 | 814 | | |
814 | | - | |
| 815 | + | |
815 | 816 | | |
816 | 817 | | |
817 | 818 | | |
818 | 819 | | |
819 | | - | |
820 | | - | |
821 | | - | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
822 | 824 | | |
823 | 825 | | |
824 | 826 | | |
825 | 827 | | |
826 | 828 | | |
827 | 829 | | |
828 | | - | |
| 830 | + | |
829 | 831 | | |
830 | 832 | | |
831 | 833 | | |
| |||
0 commit comments