Transparency for Poly3DCollection plot in matplotlib

前端 未结 5 1296
无人共我
无人共我 2020-11-30 06:25

I am trying to draw some objects with the fabulous Matplotlib package for Python. These objects consist of points implemented with plt.scatter() and patches imp

5条回答
  •  再見小時候
    2020-11-30 06:36

    Thanks a lot Chilichiller and Julian. Your examples are very useful to me at present, because I am working on a little project about 3D representation of matrices with matplotlib, and Poly3DCollection seems suitable for the task.

    A little note, that maybe can be useful to future readers. Running your examples in Python 3 gives TypeError: 'zip' object is not subscriptable.

    The simplest solution is to wrap the return value of zip in a call to list() (as indicated by "Dive Into Python 3": http://www.diveintopython3.net/porting-code-to-python-3-with-2to3.html).

提交回复
热议问题