Commit 23b1310
committed
MNT: Remove deprecated axes kwargs collision detection
In Matplotlib 2.1, the behavior of reusing existing axes when
created with the same arguments was deprecated (see matplotlib#9037). This
behavior is now removed.
Functions that create new axes (`axes`, `add_axes`, `subplot`, etc.)
will now always create new axes, regardless of whether the kwargs
passed to them match already existing axes.
Passing kwargs to `gca` is deprecated. If `gca` is called with
kwargs that do not match the current axes, then an exception is
raised.
Fixes matplotlib#18832.1 parent 48031d8 commit 23b1310Copy full SHA for 23b1310
File tree
Expand file treeCollapse file tree
5 files changed
+60
-89
lines changedOpen diff view settings
Filter options
- doc
- api/next_api_changes
- deprecations
- development
- users/next_whats_new
- lib/matplotlib
Expand file treeCollapse file tree
5 files changed
+60
-89
lines changedOpen diff view settings
Collapse file
doc/api/next_api_changes/deprecations/18978-LPS.rst
Copy file name to clipboard+5Lines changed: 5 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
Collapse file
doc/api/next_api_changes/development/18978-LPS.rst
Copy file name to clipboard+8Lines changed: 8 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
Collapse file
doc/users/next_whats_new/axes_kwargs_collision.rst
Copy file name to clipboard+18Lines changed: 18 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
Collapse file
+24-87Lines changed: 24 additions & 87 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
56 | 56 | |
57 | 57 | |
58 | 58 | |
59 | | - |
60 | | - |
61 | | - |
62 | | - |
| 59 | + |
| 60 | + |
63 | 61 | |
64 | 62 | |
65 | 63 | |
66 | 64 | |
67 | 65 | |
68 | | - |
69 | | - |
70 | | - |
71 | | - |
72 | 66 | |
73 | 67 | |
74 | 68 | |
75 | 69 | |
76 | | - |
77 | | - |
78 | | - |
79 | | - |
80 | | - |
81 | | - |
82 | | - |
83 | | - |
84 | | - |
85 | | - |
86 | | - |
87 | | - |
88 | | - |
89 | | - |
90 | | - |
91 | | - |
92 | | - |
93 | | - |
94 | | - |
95 | | - |
96 | | - |
| 70 | + |
97 | 71 | |
98 | 72 | |
99 | | - |
100 | | - |
| 73 | + |
| 74 | + |
101 | 75 | |
102 | 76 | |
103 | 77 | |
| ||
114 | 88 | |
115 | 89 | |
116 | 90 | |
117 | | - |
118 | | - |
119 | 91 | |
120 | 92 | |
121 | 93 | |
122 | 94 | |
123 | 95 | |
124 | 96 | |
125 | | - |
126 | | - |
127 | | - |
128 | | - |
129 | | - |
130 | | - |
131 | | - |
132 | | - |
133 | | - |
134 | | - |
135 | | - |
136 | | - |
137 | | - |
138 | | - |
139 | | - |
140 | | - |
| 97 | + |
141 | 98 | |
142 | 99 | |
143 | 100 | |
144 | 101 | |
145 | 102 | |
146 | 103 | |
147 | 104 | |
148 | | - |
149 | | - |
150 | | - |
151 | | - |
152 | | - |
| 105 | + |
153 | 106 | |
154 | 107 | |
155 | | - |
| 108 | + |
156 | 109 | |
157 | 110 | |
158 | 111 | |
| ||
660 | 613 | |
661 | 614 | |
662 | 615 | |
663 | | - |
664 | | - |
665 | | - |
666 | | - |
667 | | - |
668 | | - |
669 | | - |
670 | | - |
671 | 616 | |
| 617 | + |
672 | 618 | |
673 | 619 | |
674 | 620 | |
| ||
681 | 627 | |
682 | 628 | |
683 | 629 | |
684 | | - |
685 | | - |
686 | | - |
687 | | - |
688 | | - |
689 | | - |
690 | | - |
691 | 630 | |
692 | 631 | |
693 | 632 | |
| ||
832 | 771 | |
833 | 772 | |
834 | 773 | |
835 | | - |
836 | | - |
837 | | - |
838 | | - |
839 | | - |
840 | | - |
841 | | - |
842 | | - |
843 | | - |
844 | | - |
845 | | - |
846 | | - |
847 | | - |
848 | 774 | |
849 | 775 | |
850 | 776 | |
| ||
1569 | 1495 | |
1570 | 1496 | |
1571 | 1497 | |
| 1498 | + |
| 1499 | + |
| 1500 | + |
| 1501 | + |
| 1502 | + |
| 1503 | + |
| 1504 | + |
| 1505 | + |
| 1506 | + |
| 1507 | + |
1572 | 1508 | |
1573 | 1509 | |
1574 | 1510 | |
| ||
1595 | 1531 | |
1596 | 1532 | |
1597 | 1533 | |
1598 | | - |
1599 | | - |
1600 | | - |
1601 | | - |
| 1534 | + |
| 1535 | + |
| 1536 | + |
| 1537 | + |
| 1538 | + |
1602 | 1539 | |
1603 | 1540 | |
1604 | 1541 | |
|
Collapse file
+5-2Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2410 | 2410 | |
2411 | 2411 | |
2412 | 2412 | |
2413 | | - |
| 2413 | + |
| 2414 | + |
| 2415 | + |
| 2416 | + |
2414 | 2417 | |
2415 | 2418 | |
2416 | | - |
| 2419 | + |
2417 | 2420 | |
2418 | 2421 | |
2419 | 2422 | |
|
0 commit comments