| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| _assert_equal(ax.stem(x, y, linefmt='r--'), expected=(x, y)) | ||
| _assert_equal(ax.stem(x, y, linefmt='r--', basefmt='b--'), expected=(x, y)) | ||
| _assert_equal(ax.stem(y, linefmt='r--'), expected=([0, 1, 2], y)) | ||
| _assert_equal(ax.stem(y, 'r--'), expected=([0, 1, 2], y)) |
There was a problem hiding this comment.
Test somewhere that the lines actually are red and dashed?
Sorry, something went wrong.
Sorry, something went wrong.
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.
… when locs are not given
… when locs are not given
…232-on-v3.5.x Backport PR #23232 on branch v3.5.x (Fix passing stem markerfmt positionally when locs are not given)
| Back | FazBrowse Home | New Git URL |
the signature is stem([locs], heads, linefmt=None, ...)
So we should support both:
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.