FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
matplotlib/examples/mplot3d/contourf3d.py at master · Nodd/matplotlib · GitHub
Nodd
matplotlib
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
matplotlib
/
examples
/
mplot3d
/
contourf3d.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
25 lines (18 loc) · 594 Bytes
Breadcrumbs
matplotlib
/
examples
/
mplot3d
/
contourf3d.py
Copy path
File metadata and controls
25 lines (18 loc) · 594 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
17
18
19
20
21
22
23
24
25
'''
===============
Filled contours
===============
contourf differs from contour in that it creates filled contours, ie.
a discrete number of colours are used to shade the domain.
This is like a contourf plot in 2D except that the shaded region corresponding
to the level c is graphed on the plane z=c.
'''
from
mpl_toolkits
.
mplot3d
import
axes3d
import
matplotlib
.
pyplot
as
plt
from
matplotlib
import
cm
fig
=
plt
.
figure
()
ax
=
fig
.
gca
(
projection
=
'3d'
)
X
,
Y
,
Z
=
axes3d
.
get_test_data
(
0.05
)
cset
=
ax
.
contourf
(
X
,
Y
,
Z
,
cmap
=
cm
.
coolwarm
)
ax
.
clabel
(
cset
,
fontsize
=
9
,
inline
=
1
)
plt
.
show
()
Back
|
FazBrowse Home
|
New Git URL