Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Commitcd70bba
committed
Changed axis selection when zooming datalim-adjustable fixed-aspect axes
When aspect is set and adjustable="datalim", should we change the xlimits or the y limits to get the correct aspect? The old code usedsome complex conditions, which I actually haven't managed to fullyunderstand, to either expand or shrink one of the axises. Instead, justchoose to always expand (rather than shrink) one of the axises, whichwill avoid sending artists out-of-bounds. (The sole exception is incare of shared axes, which we do not touch as explained in the comment.)This patch caused a change in the autolimiting oftest_axes.py::test_pie_frame_grid which was buggy anyways, I forced theold behavior by setting x/ylims manually (after checking that thedefault is to expand the limits).1 parent303873f commitcd70bba
2 files changed
+35
-41
lines changedLines changed: 28 additions & 41 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1898 | 1898 |
| |
1899 | 1899 |
| |
1900 | 1900 |
| |
1901 |
| - | |
1902 |
| - | |
1903 |
| - | |
| 1901 | + | |
| 1902 | + | |
| 1903 | + | |
1904 | 1904 |
| |
1905 | 1905 |
| |
1906 |
| - | |
1907 |
| - | |
1908 |
| - | |
1909 |
| - | |
1910 |
| - | |
1911 |
| - | |
1912 |
| - | |
1913 |
| - | |
1914 |
| - | |
1915 |
| - | |
1916 |
| - | |
1917 |
| - | |
1918 |
| - | |
1919 |
| - | |
1920 |
| - | |
1921 |
| - | |
| 1906 | + | |
| 1907 | + | |
| 1908 | + | |
| 1909 | + | |
| 1910 | + | |
| 1911 | + | |
| 1912 | + | |
1922 | 1913 |
| |
1923 | 1914 |
| |
1924 |
| - | |
1925 | 1915 |
| |
1926 | 1916 |
| |
1927 | 1917 |
| |
1928 |
| - | |
1929 |
| - | |
1930 |
| - | |
1931 |
| - | |
1932 |
| - | |
1933 |
| - | |
1934 |
| - | |
1935 |
| - | |
1936 |
| - | |
1937 |
| - | |
1938 |
| - | |
1939 |
| - | |
1940 |
| - | |
1941 |
| - | |
1942 |
| - | |
1943 |
| - | |
1944 |
| - | |
| 1918 | + | |
| 1919 | + | |
| 1920 | + | |
| 1921 | + | |
| 1922 | + | |
| 1923 | + | |
| 1924 | + | |
| 1925 | + | |
| 1926 | + | |
| 1927 | + | |
| 1928 | + | |
| 1929 | + | |
| 1930 | + | |
| 1931 | + | |
1945 | 1932 |
| |
1946 |
| - | |
1947 |
| - | |
1948 |
| - | |
1949 |
| - | |
| 1933 | + | |
| 1934 | + | |
| 1935 | + | |
| 1936 | + | |
1950 | 1937 |
| |
1951 | 1938 |
| |
1952 | 1939 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5039 | 5039 |
| |
5040 | 5040 |
| |
5041 | 5041 |
| |
| 5042 | + | |
| 5043 | + | |
| 5044 | + | |
| 5045 | + | |
| 5046 | + | |
| 5047 | + | |
| 5048 | + | |
5042 | 5049 |
| |
5043 | 5050 |
| |
5044 | 5051 |
| |
|
0 commit comments
Comments
(0)