Commit 3d4400b
committed
Make sharex, etc. args of subplots() keyword-only.
Currently subplots() has a specific codepath to check whether one typed
`subplots(1, 1, 1)` and warn in that case because the user likely meant
`subplot(1, 1, 1)` (no "s") but will instead get
`subplots(1, 1, sharex=1)`. Making *sharex* keyword-only will remove
this trap; moreover `subplots(1, 1, sharex=True)` is anyways much more
legible than `subplots(1, 1, True)`.
If this makes it to 3.3 then GridSpec.subplots() won't need a
deprecation period as that API is new.1 parent d2a12cb commit 3d4400b
4 files changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
441 | 446 | | |
442 | 447 | | |
443 | 448 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1430 | 1430 | | |
1431 | 1431 | | |
1432 | 1432 | | |
| 1433 | + | |
1433 | 1434 | | |
1434 | 1435 | | |
1435 | 1436 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | | - | |
| 238 | + | |
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1084 | 1084 | | |
1085 | 1085 | | |
1086 | 1086 | | |
| 1087 | + | |
1087 | 1088 | | |
1088 | 1089 | | |
1089 | 1090 | | |
| |||
0 commit comments