Commit 78b881e
committed
Fix passing stem markerfmt positionally when locs are not given
the signature is stem([locs], heads, linefmt=None, ...)
So we should support both:
```
stem(heads, linefmt='r')
stem(heads, 'r')
```
We had a kwonly deprecation for 3.5 that was aiming at
`stem([locs], heads, *, linefmt=None, ...)`
but now I'd rather relax this to
`stem([locs], heads, linefmt=None, *, ...)`
because it's reasonable to still support `stem(heads, 'r')`. That's
analogous to `plot(y, 'r')`. The code overhead for supporting both
positional and keyword passing for the single `linefmt` parameter
is bearable.1 parent f278686 commit 78b881e
File tree
3 files changed
+25
-8
lines changed- doc/api/next_api_changes/deprecations
- lib/matplotlib
- axes
- tests
3 files changed
+25
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2900 | 2900 | | |
2901 | 2901 | | |
2902 | 2902 | | |
| 2903 | + | |
| 2904 | + | |
| 2905 | + | |
2903 | 2906 | | |
2904 | 2907 | | |
2905 | | - | |
| 2908 | + | |
2906 | 2909 | | |
2907 | 2910 | | |
2908 | | - | |
| 2911 | + | |
2909 | 2912 | | |
2910 | 2913 | | |
2911 | 2914 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3801 | 3801 | | |
3802 | 3802 | | |
3803 | 3803 | | |
| 3804 | + | |
| 3805 | + | |
| 3806 | + | |
| 3807 | + | |
| 3808 | + | |
3804 | 3809 | | |
3805 | 3810 | | |
3806 | | - | |
3807 | | - | |
| 3811 | + | |
| 3812 | + | |
3808 | 3813 | | |
3809 | 3814 | | |
3810 | | - | |
3811 | | - | |
3812 | | - | |
3813 | | - | |
| 3815 | + | |
| 3816 | + | |
| 3817 | + | |
| 3818 | + | |
| 3819 | + | |
| 3820 | + | |
| 3821 | + | |
3814 | 3822 | | |
3815 | 3823 | | |
3816 | 3824 | | |
| |||
0 commit comments