Matplotlib: “Unknown projection '3d'” error

前端 未结 5 2029
南笙
南笙 2020-12-07 16:00

I just installed matplotlib and am trying to run one of there example scripts. However I run into the error detailed below. What am I doing wrong?

from mpl_         


        
5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-07 16:52

    Import mplot3d whole to use "projection = '3d'".

    Insert the command below in top of your script. It should run fine.

    from mpl_toolkits import mplot3d

提交回复
热议问题