Commit 9b6c617
committed
Check that stem input is 1D
This also has the side-effect of casting torch Tensors to NumPy arrays,
which fixes matplotlib#30216. Since `stem` is made up of `plot` and `[hv]lines`
whic already do this cast, this just moves it up one level which
prevents doing it twice.1 parent 0e430b9 commit 9b6c617
2 files changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3436 | 3436 | | |
3437 | 3437 | | |
3438 | 3438 | | |
| 3439 | + | |
| 3440 | + | |
| 3441 | + | |
3439 | 3442 | | |
3440 | 3443 | | |
3441 | 3444 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4744 | 4744 | | |
4745 | 4745 | | |
4746 | 4746 | | |
| 4747 | + | |
| 4748 | + | |
| 4749 | + | |
| 4750 | + | |
| 4751 | + | |
4747 | 4752 | | |
4748 | 4753 | | |
4749 | 4754 | | |
| |||
0 commit comments