Skip to content

A simple 3D surface visualization project using Python, NumPy, and Matplotlib. Generates a radial wave pattern using meshgrid and surface plotting.

Notifications You must be signed in to change notification settings

NazmulHudaNabil/Python-3D-Visualization-Numpy-Matplotlib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 

Repository files navigation

3D Surface Plot using Python, NumPy & Matplotlib

This project demonstrates how to create a 3D surface plot in Python using NumPy and Matplotlib.
The plot visualizes the mathematical function:

[ Z = \sin\left(\sqrt{X^2 + Y^2}\right) ]

This generates a radial wave pattern, similar to ripples spreading outward from the center.


πŸ”§ Technologies Used

  • Python
  • NumPy
  • Matplotlib (mplot3d)

πŸ“Œ Code Example

import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D

x = np.linspace(-5, 5, 50)
y = np.linspace(-5, 5, 50)
X, Y = np.meshgrid(x, y)
Z = np.sin(np.sqrt(X**2 + Y**2))

fig = plt.figure()
ax = fig.add_subplot(111, projection="3d")
ax.plot_surface(X, Y, Z, cmap="viridis")
plt.show()

About

A simple 3D surface visualization project using Python, NumPy, and Matplotlib. Generates a radial wave pattern using meshgrid and surface plotting.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages