Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Commit32ec60d
authored
Add explicit converter setting to Axis (#28970)
* Add explicit converter setting to AxisCloses#19229The replacement is the get/set_converter method.This includes changes to use the getter and the private setter in the qtfigure options dialog menu.The choice to use the private setter was a defensive one as the publicsetter prevents being called multiple times (though does short circuitif 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 waslost. A quick test commenting out the two lines which resetconverter/units displayed no obvious detrimental effect to removingthose, suggesting that even if once they were necessary, they may nolonger be.These lines were last touched in#24141, though that really only generalizedthe code into a loop rather than copy/pasted x and y behavior.The original inclusion of resetting was in#4909, which indicated thatthe dialog reset unit info. AFAICT, that is no longer true, though Ihave not rigorously proved that.1 parentc52cb41 commit32ec60d
File tree
6 files changed
+100
-24
lines changed- doc/api
- lib/matplotlib
- backends/qt_editor
- tests
6 files changed
+100
-24
lines changedLines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
169 | 169 |
| |
170 | 170 |
| |
171 | 171 |
| |
| 172 | + | |
| 173 | + | |
172 | 174 |
| |
173 | 175 |
| |
174 | 176 |
| |
|
Lines changed: 61 additions & 18 deletions
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 |
| |
|
Lines changed: 3 additions & 0 deletions
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 |
| |
|
Lines changed: 3 additions & 3 deletions
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 |
| |
|
Lines changed: 4 additions & 2 deletions
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 |
| |
|
Lines changed: 27 additions & 1 deletion
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
Comments
(0)