Commit 62c3ad4
committed
MNT: Issue a warning instead of logging if RGB(A) passed to scatter(...,
c)
When to use what:
- warnings.warn() in library code if the issue is avoidable and the
client application should be modified to eliminate the warning
- logging.warning() if there is nothing the client application can
do about the situation, but the event should still be noted
There are unambiguous ways for the user to specify the color (see the
message). Here, the user should take action and switch from using *c*
to using *color*. Thus warnings.warn() is the way to go.
Closes half of #23422.1 parent cd185ab commit 62c3ad4
2 files changed
+16
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4394 | 4394 | | |
4395 | 4395 | | |
4396 | 4396 | | |
4397 | | - | |
| 4397 | + | |
4398 | 4398 | | |
4399 | 4399 | | |
4400 | 4400 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
2638 | 2639 | | |
2639 | 2640 | | |
2640 | 2641 | | |
2641 | | - | |
| 2642 | + | |
| 2643 | + | |
| 2644 | + | |
| 2645 | + | |
| 2646 | + | |
| 2647 | + | |
| 2648 | + | |
| 2649 | + | |
| 2650 | + | |
2642 | 2651 | | |
2643 | 2652 | | |
2644 | 2653 | | |
2645 | | - | |
2646 | | - | |
2647 | | - | |
2648 | | - | |
2649 | | - | |
2650 | 2654 | | |
2651 | 2655 | | |
2652 | 2656 | | |
| |||
6803 | 6807 | | |
6804 | 6808 | | |
6805 | 6809 | | |
6806 | | - | |
6807 | | - | |
6808 | | - | |
| 6810 | + | |
| 6811 | + | |
| 6812 | + | |
6809 | 6813 | | |
6810 | 6814 | | |
6811 | 6815 | | |
| |||
7688 | 7692 | | |
7689 | 7693 | | |
7690 | 7694 | | |
7691 | | - | |
| 7695 | + | |
| 7696 | + | |
7692 | 7697 | | |
7693 | 7698 | | |
7694 | 7699 | | |
| |||
0 commit comments