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
!357
Add plotting of execution times from Scheduler GUI
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add plotting of execution times from Scheduler GUI
executiontimeplots
into
master
Overview
0
Commits
1
Pipelines
3
Changes
3
Merged
Oscar Gustafsson
requested to merge
executiontimeplots
into
master
1 year ago
Overview
0
Commits
1
Pipelines
3
Changes
3
Expand
One may consider interactive updating as well.
0
0
Merge request reports
Compare
master
version 2
5ed26437
1 year ago
version 1
5a4e393c
1 year ago
master (base)
and
latest version
latest version
a55b4ce4
1 commit,
1 year ago
version 2
5ed26437
1 commit,
1 year ago
version 1
5a4e393c
1 commit,
1 year ago
3 files
+
58
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
b_asic/gui_utils/mpl_window.py
0 → 100644
+
39
−
0
Options
"""
MPLWindow is a dialog that provides an Axes for plotting in.
"""
from
matplotlib.backends.backend_qt5agg
import
FigureCanvasQTAgg
as
FigureCanvas
from
matplotlib.backends.backend_qt5agg
import
NavigationToolbar2QT
as
NavigationToolbar
from
matplotlib.figure
import
Figure
from
qtpy.QtCore
import
Qt
from
qtpy.QtWidgets
import
QDialog
,
QVBoxLayout
class
MPLWindow
(
QDialog
):
"""
Dialog for plotting Matplotlib things.
"""
def
__init__
(
self
,
title
:
str
=
"
B-ASIC
"
):
super
().
__init__
()
self
.
setWindowFlags
(
Qt
.
WindowTitleHint
|
Qt
.
WindowCloseButtonHint
|
Qt
.
WindowMinimizeButtonHint
|
Qt
.
WindowMaximizeButtonHint
)
self
.
setWindowTitle
(
title
)
self
.
_dialog_layout
=
QVBoxLayout
()
self
.
setLayout
(
self
.
_dialog_layout
)
self
.
_plot_fig
=
Figure
(
figsize
=
(
5
,
4
),
layout
=
"
compressed
"
)
self
.
_plot_axes
=
self
.
_plot_fig
.
add_subplot
(
111
)
self
.
_plot_canvas
=
FigureCanvas
(
self
.
_plot_fig
)
self
.
_toolbar
=
NavigationToolbar
(
self
.
_plot_canvas
,
self
)
self
.
_dialog_layout
.
addWidget
(
self
.
_toolbar
)
self
.
_dialog_layout
.
addWidget
(
self
.
_plot_canvas
)
@property
def
axes
(
self
):
return
self
.
_plot_axes
Loading