import numpy as np
import [Link] as plt
from mpl_toolkits.mplot3d import Axes3D
# Generăm datele pentru paraboloidul hiperbolic
x = [Link](-5, 5, 100)
y = [Link](-5, 5, 100)
x, y = [Link](x, y)
z = [Link](x**2 - y**2)
# Inițializăm figura și axele pentru graficul 3D
fig = [Link](figsize=(12, 8))
# Perspectiva 1
ax1 = fig.add_subplot(221, projection='3d')
ax1.plot_surface(x, y, z, cmap='viridis')
ax1.set_title('Perspectiva 1')
# Perspectiva 2
ax2 = fig.add_subplot(222, projection='3d')
ax2.plot_surface(x, y, -z, cmap='viridis')
ax2.set_title('Perspectiva 2')
# Perspectiva 3
ax3 = fig.add_subplot(223, projection='3d')
ax3.plot_surface(x, -y, z, cmap='viridis')
ax3.set_title('Perspectiva 3')
# Perspectiva 4
ax4 = fig.add_subplot(224, projection='3d')
ax4.plot_surface(x, -y, -z, cmap='viridis')
ax4.set_title('Perspectiva 4')
# Afișăm graficul
plt.tight_layout()
[Link]()