Matplotlib'yi yeni yükledim ve örnek komut dosyalarından birini çalıştırmaya çalışıyorum. Ancak aşağıda ayrıntıları verilen hatayı araştırıyorum. Neyi yanlış yapıyorum?Matplotlib: "Bilinmeyen projeksiyon '3d'" hatası
from mpl_toolkits.mplot3d import axes3d
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.gca(projection='3d')
X, Y, Z = axes3d.get_test_data(0.05)
cset = ax.contour(X, Y, Z, 16, extend3d=True)
ax.clabel(cset, fontsize=9, inline=1)
plt.show()
hata
Traceback (most recent call last):
File "<string>", line 245, in run_nodebug
File "<module1>", line 5, in <module>
File "C:\Python26\lib\site-packages\matplotlib\figure.py", line 945, in gca
return self.add_subplot(111, **kwargs)
File "C:\Python26\lib\site-packages\matplotlib\figure.py", line 677, in add_subplot
projection_class = get_projection_class(projection)
File "C:\Python26\lib\site-packages\matplotlib\projections\__init__.py", line 61, in get_projection_class
raise ValueError("Unknown projection '%s'" % projection)
ValueError: Unknown projection '3d'
Bu konuya bir bakın: http://comments.gmane.org/gmane.comp.python.matplotlib.devel/8904 –
Benim için mükemmel çalışıyor. Windows XP, Etkin durum python 2.6.5 matplotlib 1.0.0. – joaquin
Hangi sürüm python kullanıyorsunuz? –