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
6235ecde
Commit
6235ecde
authored
4 years ago
by
Jacob Wahlman
Browse files
Options
Downloads
Patches
Plain Diff
added save for plot
parent
8e3cd1d4
No related branches found
No related tags found
1 merge request
!54
added logging and help section
Pipeline
#15679
passed
4 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
b_asic/GUI/simulate_sfg_window.py
+2
-1
2 additions, 1 deletion
b_asic/GUI/simulate_sfg_window.py
with
2 additions
and
1 deletion
b_asic/GUI/simulate_sfg_window.py
+
2
−
1
View file @
6235ecde
...
...
@@ -114,7 +114,7 @@ class Plot(FigureCanvas):
self
.
_plot_values_sfg
()
def
_save_plot_figure
(
self
):
self
.
_window
.
logger
.
info
(
f
"
Saving plot of figure:
{
self
.
sfg
.
name
}
"
)
self
.
_window
.
logger
.
info
(
f
"
Saving plot of figure:
{
self
.
sfg
.
name
}
.
"
)
file_choices
=
"
PNG (*.png)|*.png
"
path
,
ext
=
QFileDialog
.
getSaveFileName
(
self
,
"
Save file
"
,
""
,
file_choices
)
path
=
path
.
encode
(
"
utf-8
"
)
...
...
@@ -123,6 +123,7 @@ class Plot(FigureCanvas):
if
path
:
self
.
print_figure
(
path
.
decode
(),
dpi
=
self
.
dpi
)
self
.
_window
.
logger
.
info
(
f
"
Saved plot:
{
self
.
sfg
.
name
}
to path:
{
path
}
.
"
)
def
_plot_values_sfg
(
self
):
x_axis
=
list
(
range
(
len
(
self
.
simulation
.
results
.
keys
())))
...
...
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