FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
SomeCodes/Python/matplotlib_demo/matplotlib_subplot.py at master · HatchetCode/SomeCodes · GitHub
HatchetCode
/
SomeCodes
Public
forked from
Urinx/SomeCodes
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
SomeCodes
/
Python
/
matplotlib_demo
/
matplotlib_subplot.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
16 lines (14 loc) · 339 Bytes
Breadcrumbs
SomeCodes
/
Python
/
matplotlib_demo
/
matplotlib_subplot.py
Copy path
File metadata and controls
16 lines (14 loc) · 339 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
#!/usr/bin/env python
# coding:utf-8
from
matplotlib
import
pyplot
import
numpy
as
np
def
f
(
t
):
return
np
.
exp
(
-
t
)
*
np
.
cos
(
2
*
np
.
pi
*
t
)
t1
=
np
.
arange
(
0.0
,
5.0
,
0.1
)
t2
=
np
.
arange
(
0.0
,
5.0
,
0.02
)
pyplot
.
figure
(
1
)
pyplot
.
subplot
(
211
)
pyplot
.
plot
(
t1
,
f
(
t1
),
'g^'
,
t2
,
f
(
t2
),
'k'
)
pyplot
.
subplot
(
212
)
pyplot
.
plot
(
t2
,
np
.
cos
(
2
*
np
.
pi
*
t2
),
'r--'
)
pyplot
.
show
()
Back
|
FazBrowse Home
|
New Git URL