FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
matplotlib.github.com/3.5.1/gallery/mplot3d/errorbar3d.py at main · matplotlib/matplotlib.github.com · GitHub
matplotlib
/
matplotlib.github.com
Public
Notifications
You must be signed in to change notification settings
Fork
62
Star
29
Code
Issues
1
Pull requests
2
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
matplotlib.github.com
/
3.5.1
/
gallery
/
mplot3d
/
errorbar3d.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
29 lines (21 loc) · 635 Bytes
Breadcrumbs
matplotlib.github.com
/
3.5.1
/
gallery
/
mplot3d
/
errorbar3d.py
Copy path
File metadata and controls
29 lines (21 loc) · 635 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
27
28
29
"""
============
3D errorbars
============
An example of using errorbars with upper and lower limits in mplot3d.
"""
import
matplotlib
.
pyplot
as
plt
import
numpy
as
np
ax
=
plt
.
figure
().
add_subplot
(
projection
=
'3d'
)
# setting up a parametric curve
t
=
np
.
arange
(
0
,
2
*
np
.
pi
+
.1
,
0.01
)
x
,
y
,
z
=
np
.
sin
(
t
),
np
.
cos
(
3
*
t
),
np
.
sin
(
5
*
t
)
estep
=
15
i
=
np
.
arange
(
t
.
size
)
zuplims
=
(
i
%
estep
==
0
)
&
(
i
//
estep
%
3
==
0
)
zlolims
=
(
i
%
estep
==
0
)
&
(
i
//
estep
%
3
==
2
)
ax
.
errorbar
(
x
,
y
,
z
,
0.2
,
zuplims
=
zuplims
,
zlolims
=
zlolims
,
errorevery
=
estep
)
ax
.
set_xlabel
(
"X label"
)
ax
.
set_ylabel
(
"Y label"
)
ax
.
set_zlabel
(
"Z label"
)
plt
.
show
()
Back
|
FazBrowse Home
|
New Git URL