Python - Grafica 3D error en el codigo. Me sale un error en el ax.contour3d... ¿podrían ayudarme?

 
Vista:

Grafica 3D error en el codigo. Me sale un error en el ax.contour3d... ¿podrían ayudarme?

Publicado por Hiram (1 intervención) el 23/01/2023 19:21:28
1
2
3
4
5
6
7
8
9
10
11
12
13
import pandas as pd
import matplotlib.pyplot as plt #Biblioteca de trazado 2D para Python
from mpl_toolkits.mplot3d import axes3d
import matplotlib.cm as cm
archivo='hab.csv'
datos=pd.read_csv(archivo)
x=datos['april']
y=datos['Temperature']
z=datos['Chlorella']
fig=plt.figure()
ax=fig.add_subplot(111,projection='3d')
ax.contour3D(x,y,z)
plt.show()
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder