Commit d7ee951
committed
Add "standard" Axes wrapper getters/setters for Axis invertedness.
Currently, toggling an axis invertedness requires either using the
Axes method `ax.invert_xaxis()` (whose effect depends on whether it
has already been called before) or going through the axis method
`ax.xaxis.set_inverted()`; likewise, querying invertedness state
requires either using the `ax.xaxis_inverted()` method, which has
slightly nonstandard naming, or going through the axis method
`ax.xaxis.get_inverted()`.
For practicality, provide getters and setters with standard names:
`ax.get_xinverted()`/`ax.set_xinverted()` (and likewise for y/z). In
particular, the "standard" setter can be used with the multi-setter
Artist.set(), or directly when creating the axes
(`add_subplot(xinverted=True)`).1 parent 773096e commit d7ee951
File tree
6 files changed
+72
-3
lines changed- doc
- api
- toolkits/mplot3d
- users/next_whats_new
- lib
- matplotlib/axes
- mpl_toolkits/mplot3d
6 files changed
+72
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
| 288 | + | |
| 289 | + | |
288 | 290 | | |
289 | 291 | | |
| 292 | + | |
| 293 | + | |
290 | 294 | | |
291 | 295 | | |
292 | 296 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
102 | 104 | | |
103 | 105 | | |
| 106 | + | |
| 107 | + | |
104 | 108 | | |
105 | 109 | | |
| 110 | + | |
| 111 | + | |
106 | 112 | | |
107 | 113 | | |
108 | 114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
3603 | 3604 | | |
3604 | 3605 | | |
3605 | 3606 | | |
| 3607 | + | |
| 3608 | + | |
| 3609 | + | |
| 3610 | + | |
| 3611 | + | |
3606 | 3612 | | |
3607 | 3613 | | |
3608 | | - | |
| 3614 | + | |
3609 | 3615 | | |
3610 | 3616 | | |
3611 | 3617 | | |
3612 | 3618 | | |
3613 | 3619 | | |
| 3620 | + | |
| 3621 | + | |
3614 | 3622 | | |
| 3623 | + | |
| 3624 | + | |
| 3625 | + | |
| 3626 | + | |
| 3627 | + | |
| 3628 | + | |
| 3629 | + | |
| 3630 | + | |
3615 | 3631 | | |
3616 | 3632 | | |
3617 | 3633 | | |
| |||
3856 | 3872 | | |
3857 | 3873 | | |
3858 | 3874 | | |
| 3875 | + | |
| 3876 | + | |
| 3877 | + | |
| 3878 | + | |
| 3879 | + | |
3859 | 3880 | | |
3860 | 3881 | | |
3861 | | - | |
| 3882 | + | |
3862 | 3883 | | |
3863 | 3884 | | |
3864 | 3885 | | |
3865 | 3886 | | |
3866 | 3887 | | |
| 3888 | + | |
| 3889 | + | |
3867 | 3890 | | |
| 3891 | + | |
| 3892 | + | |
| 3893 | + | |
| 3894 | + | |
| 3895 | + | |
| 3896 | + | |
| 3897 | + | |
| 3898 | + | |
3868 | 3899 | | |
3869 | 3900 | | |
3870 | 3901 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
| 408 | + | |
408 | 409 | | |
| 410 | + | |
409 | 411 | | |
410 | 412 | | |
411 | 413 | | |
| |||
430 | 432 | | |
431 | 433 | | |
432 | 434 | | |
| 435 | + | |
433 | 436 | | |
| 437 | + | |
434 | 438 | | |
435 | 439 | | |
436 | 440 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1888 | 1888 | | |
1889 | 1889 | | |
1890 | 1890 | | |
| 1891 | + | |
| 1892 | + | |
| 1893 | + | |
| 1894 | + | |
| 1895 | + | |
1891 | 1896 | | |
1892 | 1897 | | |
1893 | | - | |
| 1898 | + | |
1894 | 1899 | | |
1895 | 1900 | | |
1896 | 1901 | | |
1897 | 1902 | | |
1898 | 1903 | | |
1899 | 1904 | | |
| 1905 | + | |
| 1906 | + | |
1900 | 1907 | | |
| 1908 | + | |
| 1909 | + | |
| 1910 | + | |
| 1911 | + | |
| 1912 | + | |
| 1913 | + | |
| 1914 | + | |
| 1915 | + | |
1901 | 1916 | | |
1902 | 1917 | | |
1903 | 1918 | | |
| |||
0 commit comments