Commit 32ec60d
authored
Add explicit converter setting to Axis (matplotlib#28970)
* Add explicit converter setting to Axis
Closes matplotlib#19229
The replacement is the get/set_converter method.
This includes changes to use the getter and the private setter in the qt
figure options dialog menu.
The choice to use the private setter was a defensive one as the public
setter prevents being called multiple times (though does short circuit
if an identical input is provided, which I think is actually true here,
therefore the public one is probably functional (and a no-op).)
It is not clear to me on analysis how the unit information is or was
lost. A quick test commenting out the two lines which reset
converter/units displayed no obvious detrimental effect to removing
those, suggesting that even if once they were necessary, they may no
longer be.
These lines were last touched in matplotlib#24141, though that really only generalized
the code into a loop rather than copy/pasted x and y behavior.
The original inclusion of resetting was in matplotlib#4909, which indicated that
the dialog reset unit info. AFAICT, that is no longer true, though I
have not rigorously proved that.1 parent c52cb41 commit 32ec60d
File tree
6 files changed
+100
-24
lines changed- doc/api
- lib/matplotlib
- backends/qt_editor
- tests
6 files changed
+100
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| 172 | + | |
| 173 | + | |
172 | 174 | | |
173 | 175 | | |
174 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
600 | 600 | | |
601 | 601 | | |
602 | 602 | | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
603 | 607 | | |
604 | 608 | | |
605 | 609 | | |
| |||
656 | 660 | | |
657 | 661 | | |
658 | 662 | | |
659 | | - | |
| 663 | + | |
| 664 | + | |
660 | 665 | | |
661 | 666 | | |
662 | 667 | | |
| |||
886 | 891 | | |
887 | 892 | | |
888 | 893 | | |
889 | | - | |
| 894 | + | |
| 895 | + | |
890 | 896 | | |
891 | 897 | | |
892 | 898 | | |
| |||
1738 | 1744 | | |
1739 | 1745 | | |
1740 | 1746 | | |
1741 | | - | |
| 1747 | + | |
1742 | 1748 | | |
1743 | 1749 | | |
1744 | | - | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
1745 | 1755 | | |
1746 | 1756 | | |
1747 | 1757 | | |
1748 | | - | |
1749 | | - | |
1750 | | - | |
| 1758 | + | |
| 1759 | + | |
| 1760 | + | |
1751 | 1761 | | |
1752 | 1762 | | |
1753 | 1763 | | |
| |||
1761 | 1771 | | |
1762 | 1772 | | |
1763 | 1773 | | |
1764 | | - | |
| 1774 | + | |
1765 | 1775 | | |
1766 | 1776 | | |
1767 | | - | |
| 1777 | + | |
1768 | 1778 | | |
1769 | 1779 | | |
1770 | 1780 | | |
| |||
1791 | 1801 | | |
1792 | 1802 | | |
1793 | 1803 | | |
1794 | | - | |
| 1804 | + | |
1795 | 1805 | | |
1796 | 1806 | | |
1797 | 1807 | | |
1798 | 1808 | | |
1799 | 1809 | | |
1800 | 1810 | | |
1801 | | - | |
1802 | | - | |
| 1811 | + | |
| 1812 | + | |
1803 | 1813 | | |
1804 | | - | |
| 1814 | + | |
1805 | 1815 | | |
1806 | 1816 | | |
1807 | | - | |
| 1817 | + | |
1808 | 1818 | | |
1809 | 1819 | | |
1810 | 1820 | | |
1811 | 1821 | | |
1812 | 1822 | | |
| 1823 | + | |
| 1824 | + | |
| 1825 | + | |
| 1826 | + | |
| 1827 | + | |
| 1828 | + | |
| 1829 | + | |
| 1830 | + | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
1813 | 1856 | | |
1814 | 1857 | | |
1815 | 1858 | | |
| |||
2529 | 2572 | | |
2530 | 2573 | | |
2531 | 2574 | | |
2532 | | - | |
2533 | | - | |
| 2575 | + | |
| 2576 | + | |
2534 | 2577 | | |
2535 | 2578 | | |
2536 | 2579 | | |
| |||
2759 | 2802 | | |
2760 | 2803 | | |
2761 | 2804 | | |
2762 | | - | |
2763 | | - | |
| 2805 | + | |
| 2806 | + | |
2764 | 2807 | | |
2765 | 2808 | | |
2766 | 2809 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
207 | 208 | | |
208 | 209 | | |
209 | 210 | | |
| 211 | + | |
| 212 | + | |
210 | 213 | | |
211 | 214 | | |
212 | 215 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
| 212 | + | |
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
668 | 668 | | |
669 | 669 | | |
670 | 670 | | |
671 | | - | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
672 | 674 | | |
673 | 675 | | |
674 | | - | |
| 676 | + | |
675 | 677 | | |
676 | 678 | | |
677 | 679 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
239 | 265 | | |
240 | 266 | | |
241 | 267 | | |
| |||
0 commit comments