Commit 713d170
committed
Validate that input to Poly3DCollection is a list of 2D array-like
A 2D array-like was accepted and only issued an obscure warning. This
can easily happen if one has only one polygon and forgets to wrap it in
a list.
Closes matplotlib#21652.
Note: I refrain from an additional check that each Polygon has shape
(N_i, 3) because that will reasonaly error out later, so we don't have
to blow up parameter checking too much.1 parent 49609c3 commit 713d170
2 files changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
714 | 714 | | |
715 | 715 | | |
716 | 716 | | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
717 | 723 | | |
718 | 724 | | |
719 | 725 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
704 | 704 | | |
705 | 705 | | |
706 | 706 | | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
707 | 717 | | |
708 | 718 | | |
709 | 719 | | |
| |||
0 commit comments