0% found this document useful (0 votes)
9 views1 page

3D Hyperbolic Paraboloid Visualizations

The document contains Python code that generates a hyperbolic paraboloid using NumPy and visualizes it in 3D with Matplotlib. It creates four different perspectives of the surface by manipulating the z-values and the y-values. The final output is a 3D plot displayed using Matplotlib's plotting functions.

Uploaded by

Ionut
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views1 page

3D Hyperbolic Paraboloid Visualizations

The document contains Python code that generates a hyperbolic paraboloid using NumPy and visualizes it in 3D with Matplotlib. It creates four different perspectives of the surface by manipulating the z-values and the y-values. The final output is a 3D plot displayed using Matplotlib's plotting functions.

Uploaded by

Ionut
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

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]()

You might also like