FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
matplotlib/examples/mplot3d/surface3d_demo2.py at master · tecki/matplotlib · GitHub
tecki
matplotlib
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
matplotlib
/
examples
/
mplot3d
/
surface3d_demo2.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
17 lines (12 loc) · 424 Bytes
Breadcrumbs
matplotlib
/
examples
/
mplot3d
/
surface3d_demo2.py
Copy path
File metadata and controls
17 lines (12 loc) · 424 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from
mpl_toolkits
.
mplot3d
import
Axes3D
import
matplotlib
.
pyplot
as
plt
import
numpy
as
np
fig
=
plt
.
figure
()
ax
=
fig
.
add_subplot
(
111
,
projection
=
'3d'
)
u
=
np
.
linspace
(
0
,
2
*
np
.
pi
,
100
)
v
=
np
.
linspace
(
0
,
np
.
pi
,
100
)
x
=
10
*
np
.
outer
(
np
.
cos
(
u
),
np
.
sin
(
v
))
y
=
10
*
np
.
outer
(
np
.
sin
(
u
),
np
.
sin
(
v
))
z
=
10
*
np
.
outer
(
np
.
ones
(
np
.
size
(
u
)),
np
.
cos
(
v
))
ax
.
plot_surface
(
x
,
y
,
z
,
rstride
=
4
,
cstride
=
4
,
color
=
'b'
)
plt
.
show
()
Back
|
FazBrowse Home
|
New Git URL