Commit 63e0329
Fix Line3DCollection with autolim=True for lines of different lengths (matplotlib#30423)
* Fix Line3DCollection with autolim=True for lines of different lengths
When using Line3DCollection with autolim=True, the code was trying to
convert ragged arrays (lines with different numbers of points) directly
to a numpy array, which would fail. This fix extracts coordinates
separately to avoid the issue.
Fixes matplotlib#30418
* fix lint
* fix lint
* Add test for Line3DCollection with autolim=True and ragged arrays
* move test
* Update lib/mpl_toolkits/mplot3d/tests/test_axes3d.py
Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
* Update lib/mpl_toolkits/mplot3d/tests/test_axes3d.py
Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
---------
Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>1 parent b78e4a1 commit 63e0329
2 files changed
+26
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2890 | 2890 | | |
2891 | 2891 | | |
2892 | 2892 | | |
2893 | | - | |
2894 | | - | |
| 2893 | + | |
| 2894 | + | |
| 2895 | + | |
| 2896 | + | |
2895 | 2897 | | |
2896 | 2898 | | |
2897 | 2899 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2689 | 2689 | | |
2690 | 2690 | | |
2691 | 2691 | | |
| 2692 | + | |
| 2693 | + | |
| 2694 | + | |
| 2695 | + | |
| 2696 | + | |
| 2697 | + | |
| 2698 | + | |
| 2699 | + | |
| 2700 | + | |
| 2701 | + | |
| 2702 | + | |
| 2703 | + | |
| 2704 | + | |
| 2705 | + | |
| 2706 | + | |
| 2707 | + | |
| 2708 | + | |
| 2709 | + | |
| 2710 | + | |
| 2711 | + | |
| 2712 | + | |
| 2713 | + | |
0 commit comments