Showing posts with label Python. Show all posts
Showing posts with label Python. Show all posts

Thursday, 24 April 2025

3D Circular Arc Helicoid shape using Python

 import matplotlib.pyplot as pltimport numpy as npu=np.linspace(0,4*np.pi,100)v=np.linspace(-2,2,50)U,V=np.meshgrid(u,v)a=0.5X=V*np.cos(U)Y=V*np.sin(U)Z=a*Ufig=plt.figure(figsize=(6,6))ax=fig.add_subplot(111,projection='3d')ax.plot_surface(X,Y,Z,cmap='plasma',alpha=0.8,edgecolor='k')ax.set_title('3D...

Tuesday, 22 April 2025

Iso Surface marching Cube using Python

 import numpy as npimport matplotlib.pyplot as pltfrom skimage import measuren = 64x, y, z = np.ogrid[-1:1:n*1j, -1:1:n*1j, -1:1:n*1j]sphere = x**2 + y**2 + z**2verts, faces, normals, values = measure.marching_cubes(sphere, level=0.5)fig...

Monday, 21 April 2025

3D Volume Rendering Pattern using Python

 import numpy as npimport matplotlib.pyplot as pltfrom mpl_toolkits.mplot3d import Axes3Ddata = np.random.rand(50, 50, 50)fig = plt.figure(figsize=(10, 8))ax = fig.add_subplot(111, projection='3d')x, y, z = np.indices(data.shape)threshold...

3D Conical Surface using Python

 import numpy as npimport matplotlib.pyplot as pltfrom mpl_toolkits.mplot3d import Axes3Dr_max=5h=10num_points=100r=np.linspace(0,r_max,num_points)theta=np.linspace(0,2*np.pi,num_points)R,Theta=np.meshgrid(r,theta)X=R*np.cos(Theta)Y=R*np.sin(Theta)Z=h*(1-R/r_max)fig=plt.figure(figsize=(6,6))ax=fig.add_subplot(111,projection='3d')ax.plot_surface(X,Y,Z,cmap='inferno',edgecolor='k',alpha=0.7)ax.set_title('3D...

Sunday, 20 April 2025

3D Topographical Pattern using Python

 import matplotlib.pyplot as pltimport numpy as npfrom mpl_toolkits.mplot3d import Axes3Dx=np.linspace(-5,5,100)y=np.linspace(-5,5,100)x,y=np.meshgrid(x,y)z=np.sin(np.sqrt(x**2+y**2))fig=plt.figure(figsize=(6,6))ax=fig.add_subplot(111,projection='3d')surface=ax.plot_surface(x,y,z,cmap='terrain',edgecolor='none')fig.colorbar(surface)ax.set_xlabel('X...

Torus Knot Pattern using Python

 import matplotlib.pyplot as pltimport numpy as npfrom mpl_toolkits.mplot3d import Axes3DR=3r=1p=2q=3theta=np.linspace(0,2*np.pi,1000)x=(R+r*np.cos(q*theta))*np.cos(p*theta)y=(R+r*np.cos(q*theta))*np.sin(p*theta)z=r*np.sin(q*theta)fig=plt.figure(figsize=(6,6))ax=fig.add_subplot(111,projection='3d')ax.plot(x,y,z,color='purple',lw=2)ax.set_xlabel('X...

Wednesday, 16 April 2025

3D Parametric Helix Pattern using Python

 import matplotlib.pyplot as pltimport numpy as npfrom mpl_toolkits.mplot3d import Axes3Dn=1000t=np.linspace(0,10*np.pi,n)x=np.sin(t)y=np.cos(t)z=tfig=plt.figure(figsize=(6,6))ax=fig.add_subplot(111,projection='3d')ax.plot(x,y,z,color='purple',lw=2)ax.set_title("3D...

Popular Posts

Categories

100 Python Programs for Beginner (109) AI (41) Android (24) AngularJS (1) Api (2) Assembly Language (2) aws (17) Azure (7) BI (10) book (4) Books (200) C (77) C# (12) C++ (83) Course (67) Coursera (253) Cybersecurity (25) Data Analysis (3) Data Analytics (4) data management (11) Data Science (149) Data Strucures (8) Deep Learning (21) Django (16) Downloads (3) edx (2) Engineering (14) Euron (29) Events (6) Excel (13) Factorial (1) Finance (6) flask (3) flutter (1) FPL (17) Generative AI (11) Google (38) Hadoop (3) HTML Quiz (1) HTML&CSS (47) IBM (30) IoT (1) IS (25) Java (93) Java quiz (1) Leet Code (4) Machine Learning (86) Meta (22) MICHIGAN (5) microsoft (4) Nvidia (4) Pandas (4) PHP (20) Projects (29) pyth (1) Python (1067) Python Coding Challenge (465) Python Quiz (138) Python Tips (5) Questions (2) R (70) React (6) Scripting (3) security (3) Selenium Webdriver (4) Software (17) SQL (42) UX Research (1) web application (8) Web development (4) web scraping (2)

Followers

Python Coding for Kids ( Free Demo for Everyone)