Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.1k
Raise warning if both c and facecolors are used in scatter plot (... and related improvements in the test suite).#29130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
5a26bb9f1966c253a0825a777a1580318098ae213c49f03f7823406638c092ae6e49aa39e189906c8a7672138c6319b92be348dfcfcf6ce29601975a18364c310a15f7c01a7bfd3d9dbFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
…plified return.
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -2906,7 +2906,7 @@ def test_scatter_different_shapes(self, fig_test, fig_ref): | ||||||||
| @pytest.mark.parametrize('c_case, re_key', params_test_scatter_c) | ||||||||
| def test_scatter_c(self, c_case, re_key): | ||||||||
| def get_next_color(): | ||||||||
| return 'blue' # currently unused # pragma: no cover | ||||||||
| xsize = 4 | ||||||||
| # Additional checking of *c* (introduced in #11383). | ||||||||
| @@ -3000,7 +3000,7 @@ def _params(c=None, xsize=2, *, edgecolors=None, **kwargs): | ||||||||
| ]) | ||||||||
| def test_parse_scatter_color_args(params, expected_result): | ||||||||
| def get_next_color(): | ||||||||
| return 'blue' # currently unused # pragma: no cover | ||||||||
| c, colors, _edgecolors = mpl.axes.Axes._parse_scatter_color_args( | ||||||||
| *params, get_next_color_func=get_next_color) | ||||||||
| @@ -3027,7 +3027,7 @@ def get_next_color(): | ||||||||
| ]) | ||||||||
| def test_parse_scatter_color_args_edgecolors(kwargs, expected_edgecolors): | ||||||||
| def get_next_color(): | ||||||||
| ||||||||
| defget_next_color(): | |
| defget_next_color():# pragma no cover |
Pretty sure it has to go next to the function declaration because you're telling coverage to ignore this whole block
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
You're right. That was my instinct as well, but I saw@jefromyers did it next to the return statement
matplotlib/lib/matplotlib/tests/test_axes.py
Line 8298 in04ce3e9
| return'blue'# pragma: no cover |
I just corrected it.
Uh oh!
There was an error while loading.Please reload this page.