Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5eb2fa4

Browse files
Create Interactive_3D_Scatter_Plot.py
1 parent a6bc157 commit 5eb2fa4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

‎Interactive_3D_Scatter_Plot.py‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import numpy as np
2+
import plotly.express as px
3+
4+
# Generate random data
5+
np.random.seed(42)
6+
num_points = 100
7+
x = np.random.rand(num_points)
8+
y = np.random.rand(num_points)
9+
z = np.random.rand(num_points)
10+
11+
# Create an interactive 3D scatter plot
12+
fig = px.scatter_3d(x=x, y=y, z=z, title='Interactive 3D Scatter Plot')
13+
fig.show()

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /