FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
finplot/finplot/examples/pandas-df-plot.py at master · TinkerForFun/finplot · GitHub
TinkerForFun
/
finplot
Public
forked from
highfestiva/finplot
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
finplot
/
finplot
/
examples
/
pandas-df-plot.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
16 lines (12 loc) · 546 Bytes
Breadcrumbs
finplot
/
finplot
/
examples
/
pandas-df-plot.py
Copy path
File metadata and controls
executable file
·
16 lines (12 loc) · 546 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 python3
import
finplot
as
fplt
import
pandas
as
pd
labels
=
[
'A'
,
'B'
,
'<span style="text-decoration:underline; color:#00b">C</span>'
,
'<span style="font-weight:bold">D</span>'
]
df
=
pd
.
DataFrame
({
'A'
:[
1
,
2
,
3
,
5
],
'B'
:[
2
,
4
,
5
,
3
],
'C'
:[
3
,
6
,
11
,
8
],
'D'
:[
1
,
1
,
2
,
2
],
'labels'
:
labels
},
index
=
[
1606086000
,
1606086001
,
1606086002
,
1606086003
])
df
.
plot
(
'A'
)
df
.
plot
(
'A'
,
'labels'
,
kind
=
'labels'
,
color
=
'#b90'
)
df
.
plot
(
'C'
,
kind
=
'scatter'
)
(
1
-
df
.
B
).
plot
(
kind
=
'scatter'
)
df
.
plot
(
kind
=
'candle'
).
setZValue
(
-
100
)
(
df
.
B
-
4
).
plot
.
bar
()
fplt
.
show
()
Back
|
FazBrowse Home
|
New Git URL