I want to set axis limits in matplotlib 3D plot to get rid of the value over 15,000.
I used 'set_zlim', but happened some error on my results.
how can I do?
from mpl_toolkits.mplot3d import Axes3D
fig = plt.figure(figsize=(10, 5))
ax = fig.gca( fc='w', projection='3d')
for hz, freq, z in zip(all_hz, all_freq,all_amp):
x = hz
y = freq
z = z
ax.plot3D(x, y, z)
ax.set_ylim(-10,15000)
ax.set_zlim(0,0.1)
plt.show()