Limits of 3D Graphs with Python/Matplotlib
up vote
0
down vote
favorite
I have a problem when setting axis limits of 3D graphs. I'm using pandas to read my database files, that are just numbers (float64 format) of atmosferic discharges and wind speed. But when setting a limit, like 1200 thunders and 80 km/h wind speed, my plot just exceeds the desired surface. It happens with "ax.set_xlim3d","ax.set_xlim" and "plt.xlim". My code is as below: fig = plt.figure() ax = fig.gca(projection='3d') y = dados['Rajada'] x = dados['Raios'] z = ((1/3080)*(np.exp(2.2507716+(0.0011096*x)+(0.0274958*y)))) ax.set_xlabel('Número de Raios',fontsize=15) ax.set_ylabel('Rajada Máxima em Km/H',fontsize=15) ax.set_zlabel('Taxa de Falha por Quilômetro',fontsize=15) plt.xlim(0,1200) plt.ylim(0,80) surf ...