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
Commits
f460356e
Commit
f460356e
authored
5 years ago
by
Oscar Gustafsson
Browse files
Options
Downloads
Patches
Plain Diff
Only use integer xticks in schedule
parent
9e23924a
No related branches found
No related tags found
2 merge requests
!71
Better schedule, including plotting
,
!69
Some basic functionality for plotting a schedule
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
b_asic/schema.py
+2
-0
2 additions, 0 deletions
b_asic/schema.py
with
2 additions
and
0 deletions
b_asic/schema.py
+
2
−
0
View file @
f460356e
...
...
@@ -6,6 +6,7 @@ Contains the schema class for scheduling operations in an SFG.
from
collections
import
defaultdict
from
typing
import
Dict
,
List
,
Optional
import
matplotlib.pyplot
as
plt
from
matplotlib.ticker
import
MaxNLocator
import
numpy
as
np
from
scipy
import
interpolate
import
sys
...
...
@@ -247,6 +248,7 @@ class Schema:
plt
.
yticks
(
ytickpositions
,
yticklabels
)
plt
.
axis
([
-
1
,
self
.
_schedule_time
+
1
,
0
,
ypos
])
plt
.
gca
().
xaxis
.
set_major_locator
(
MaxNLocator
(
integer
=
True
))
plt
.
plot
([
0
,
0
],
[
0
,
ypos
],
linestyle
=
'
--
'
,
color
=
'
black
'
)
plt
.
plot
([
self
.
_schedule_time
,
self
.
_schedule_time
],
[
0
,
ypos
],
linestyle
=
'
--
'
,
color
=
'
black
'
)
plt
.
show
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment