Commit 07268f0
committed
Fix evaluating colormaps on non-numpy arrays
Closes matplotlib#23132.
I can't specifically test that case, because we don't have pytorch as a
test dependency. However, I'd claim that deferring np.nan() to after
converting to a numpy array is obviously the right thing to do.1 parent 9bcdd60 commit 07268f0
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
706 | 706 | | |
707 | 707 | | |
708 | 708 | | |
709 | | - | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
710 | 712 | | |
| 713 | + | |
| 714 | + | |
711 | 715 | | |
712 | 716 | | |
713 | 717 | | |
| |||
0 commit comments