FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
matplotlib/plot_types/unstructured/triplot.py at v3.7.x · matplotlib/matplotlib · GitHub
matplotlib
matplotlib
Repository navigation
Code
Issues
1k
(1k)
Pull requests
425
(425)
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
matplotlib
/
plot_types
/
unstructured
/
triplot.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
26 lines (19 loc) · 428 Bytes
Breadcrumbs
matplotlib
/
plot_types
/
unstructured
/
triplot.py
Copy path
File metadata and controls
26 lines (19 loc) · 428 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
26
"""
=============
triplot(x, y)
=============
See `~matplotlib.axes.Axes.triplot`.
"""
import
matplotlib
.
pyplot
as
plt
import
numpy
as
np
plt
.
style
.
use
(
'_mpl-gallery-nogrid'
)
# make data:
np
.
random
.
seed
(
1
)
x
=
np
.
random
.
uniform
(
-
3
,
3
,
256
)
y
=
np
.
random
.
uniform
(
-
3
,
3
,
256
)
z
=
(
1
-
x
/
2
+
x
**
5
+
y
**
3
)
*
np
.
exp
(
-
x
**
2
-
y
**
2
)
# plot:
fig
,
ax
=
plt
.
subplots
()
ax
.
triplot
(
x
,
y
)
ax
.
set
(
xlim
=
(
-
3
,
3
),
ylim
=
(
-
3
,
3
))
plt
.
show
()
Back
|
FazBrowse Home
|
New Git URL