'Poly3DCollection' object has no attribute '_facecolors2d'
时间: 2023-10-22 15:08:28 浏览: 163
This error message is typically encountered when using the Poly3DCollection class from the matplotlib library.
The Poly3DCollection object is used to represent a collection of 3D polygons, and is often used in conjunction with the Axes3D class.
The error message suggests that the '_facecolors2d' attribute is missing from the object. This attribute is used to store the colors of the polygon faces in 2D space.
There are several possible reasons why this error message might occur. One possible cause is that the Poly3DCollection object was not properly initialized with the necessary attributes. Another possible cause is that the object was modified in some way that caused the '_facecolors2d' attribute to be deleted or corrupted.
To fix this error, you may need to review your code and ensure that the Poly3DCollection object is properly initialized with all necessary attributes. If the object was modified in some way, you may need to revert the changes or create a new object with the correct settings.
阅读全文