s3dlib icon indicating copy to clipboard operation
s3dlib copied to clipboard

'Surface3DCollection' object has no attribute '_facecolors3d'

Open baloe opened this issue 11 months ago • 0 comments

Hi, looks like the library is no longer compatible with recent versions of matplotlib.

import s3dlib.surface as s3d
import numpy as np
surface = s3d.Surface3DCollection(np.array([[0,0,0],[1,0,0],[1,1,0],[0,1,0]]), [np.arange(4),])

produces

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "path/to/conda/env/lib/python3.11/site-packages/s3dlib/surface.py", line 649, in __init__
    self.baseSurfaceColor = np.array(self._facecolors3d[0]).flatten().tolist()
                                     ^^^^^^^^^^^^^^^^^^
AttributeError: 'Surface3DCollection' object has no attribute '_facecolors3d'. Did you mean: '_facecolor3d'?

I saw you probably fixed this bug with 4b0adb853f0079e68a86863de9c62b85434a4622. Do you mind providing a pip package for that version 1.2?

baloe avatar Mar 10 '24 23:03 baloe