Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jerrrrry
easystart_v0.2
Commits
4663f236
Commit
4663f236
authored
Jul 24, 2025
by
jerrrrry
Browse files
Update plot.py
parent
67c38fb5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
plot.py
plot.py
+7
-1
No files found.
plot.py
View file @
4663f236
...
@@ -24,7 +24,13 @@ def extract_values(df):
...
@@ -24,7 +24,13 @@ def extract_values(df):
vals
=
[
float
(
v
)
for
v
in
df
.
iloc
[
idx
].
dropna
().
iloc
[
-
5
:]
if
str
(
v
).
replace
(
'.'
,
''
).
isdigit
()]
vals
=
[
float
(
v
)
for
v
in
df
.
iloc
[
idx
].
dropna
().
iloc
[
-
5
:]
if
str
(
v
).
replace
(
'.'
,
''
).
isdigit
()]
if
len
(
vals
)
!=
5
:
if
len
(
vals
)
!=
5
:
vals
=
[
float
(
v
)
for
v
in
df
.
iloc
[
-
1
].
dropna
().
iloc
[
-
5
:]
if
str
(
v
).
replace
(
'.'
,
''
).
isdigit
()]
vals
=
[
float
(
v
)
for
v
in
df
.
iloc
[
-
1
].
dropna
().
iloc
[
-
5
:]
if
str
(
v
).
replace
(
'.'
,
''
).
isdigit
()]
return
dict
(
zip
([
'total_throughput'
,
'generate_throughput'
,
'singel_road_generate_throughput'
,
'generate_throughput_without_ttft'
,
'ttft'
],
vals
))
return
{
"total_throughput"
:
vals
[
4
],
"generate_throughput"
:
vals
[
3
],
"singel_road_generate_throughput"
:
vals
[
1
],
"generate_throughput_without_ttft"
:
vals
[
0
],
"ttft"
:
vals
[
2
]
}
# ---------- 绘图 ----------
# ---------- 绘图 ----------
def
draw_bar
(
data
,
labels
,
colors
,
title
,
out_path
,
xlabels
):
def
draw_bar
(
data
,
labels
,
colors
,
title
,
out_path
,
xlabels
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment