Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B-ASIC - Better ASIC Toolbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computer Engineering
B-ASIC - Better ASIC Toolbox
Merge requests
!446
Add GraphID to schedule image
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add GraphID to schedule image
scheduleplot
into
master
Overview
0
Commits
1
Pipelines
2
Changes
2
Merged
Samuel Fagerlund
requested to merge
scheduleplot
into
master
10 months ago
Overview
0
Commits
1
Pipelines
2
Changes
2
Expand
Closes
#271 (closed)
0
0
Merge request reports
Compare
master
version 1
8c1f50cd
10 months ago
master (base)
and
latest version
latest version
fa6b6fb8
1 commit,
10 months ago
version 1
8c1f50cd
1 commit,
10 months ago
2 files
+
19
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
b_asic/schedule.py
+
19
−
2
Options
@@ -1052,6 +1052,21 @@ class Schedule:
y
=
np
.
array
(
_y
)
xy
=
np
.
stack
((
x
+
op_start_time
,
y
+
y_pos
))
ax
.
add_patch
(
Polygon
(
xy
.
T
,
fc
=
_LATENCY_COLOR
))
if
'
in
'
in
str
(
graph_id
):
ax
.
annotate
(
graph_id
,
xy
=
(
op_start_time
-
0.48
,
y_pos
+
0.7
),
color
=
"
black
"
,
size
=
10
-
(
0.05
*
len
(
self
.
_start_times
)),
)
else
:
ax
.
annotate
(
graph_id
,
xy
=
(
op_start_time
+
0.03
,
y_pos
+
0.7
),
color
=
"
black
"
,
size
=
10
-
(
0.05
*
len
(
self
.
_start_times
)),
)
if
execution_time_coordinates
:
_x
,
_y
=
zip
(
*
execution_time_coordinates
)
x
=
np
.
array
(
_x
)
@@ -1164,7 +1179,8 @@ class Schedule:
-------
The Matplotlib Figure.
"""
fig
,
ax
=
plt
.
subplots
()
height
=
len
(
self
.
_start_times
)
*
0.3
+
2
fig
,
ax
=
plt
.
subplots
(
figsize
=
(
12
,
height
))
self
.
_plot_schedule
(
ax
,
operation_gap
=
operation_gap
)
return
fig
@@ -1173,7 +1189,8 @@ class Schedule:
Generate an SVG of the schedule. This is automatically displayed in e.g.
Jupyter Qt console.
"""
fig
,
ax
=
plt
.
subplots
()
height
=
len
(
self
.
_start_times
)
*
0.3
+
2
fig
,
ax
=
plt
.
subplots
(
figsize
=
(
12
,
height
))
self
.
_plot_schedule
(
ax
)
buffer
=
io
.
StringIO
()
fig
.
savefig
(
buffer
,
format
=
"
svg
"
)
Loading