FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
matplotlib.github.com/examples/widgets/multicursor.py at master · HalidMahama/matplotlib.github.com · GitHub
HalidMahama
/
matplotlib.github.com
Public
forked from
matplotlib/matplotlib.github.com
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
matplotlib.github.com
/
examples
/
widgets
/
multicursor.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
17 lines (13 loc) · 363 Bytes
Breadcrumbs
matplotlib.github.com
/
examples
/
widgets
/
multicursor.py
Copy path
File metadata and controls
17 lines (13 loc) · 363 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
import
numpy
as
np
import
matplotlib
.
pyplot
as
plt
from
matplotlib
.
widgets
import
MultiCursor
t
=
np
.
arange
(
0.0
,
2.0
,
0.01
)
s1
=
np
.
sin
(
2
*
np
.
pi
*
t
)
s2
=
np
.
sin
(
4
*
np
.
pi
*
t
)
fig
=
plt
.
figure
()
ax1
=
fig
.
add_subplot
(
211
)
ax1
.
plot
(
t
,
s1
)
ax2
=
fig
.
add_subplot
(
212
,
sharex
=
ax1
)
ax2
.
plot
(
t
,
s2
)
multi
=
MultiCursor
(
fig
.
canvas
, (
ax1
,
ax2
),
color
=
'r'
,
lw
=
1
)
plt
.
show
()
Back
|
FazBrowse Home
|
New Git URL