Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
HEV - High Energy Ventilator
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
HEV - High Energy Ventilator
Commits
1ce8029b
Commit
1ce8029b
authored
May 12, 2021
by
Gabriel Rodrigues
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix localisation of Circle Plots
parent
f405ea25
Pipeline
#1519
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
20 deletions
+6
-20
plot_widget.py
NativeUI/widget_library/plot_widget.py
+6
-20
No files found.
NativeUI/widget_library/plot_widget.py
View file @
1ce8029b
...
...
@@ -137,12 +137,12 @@ class TimePlotsWidget(QtWidgets.QWidget):
self
.
flow_plot
.
setLabel
(
"left"
,
text
[
"plot_axis_label_flow"
])
self
.
flow_plot
.
legend
.
clear
()
self
.
flow_plot
.
legend
.
addItem
(
self
.
flow_line
,
name
=
text
[
"plot_line_label_flow"
])
self
.
flow_plot
.
legend
.
addItem
(
self
.
flow_line
,
text
[
"plot_line_label_flow"
])
self
.
volume_plot
.
setLabel
(
"left"
,
text
[
"plot_axis_label_volume"
])
self
.
volume_plot
.
setLabel
(
"bottom"
,
text
[
"plot_axis_label_time"
])
self
.
volume_plot
.
legend
.
clear
()
self
.
volume_plot
.
legend
.
addItem
(
self
.
volume_line
,
name
=
text
[
"plot_line_label_volume"
])
self
.
volume_plot
.
legend
.
addItem
(
self
.
volume_line
,
text
[
"plot_line_label_volume"
])
return
0
...
...
@@ -269,36 +269,22 @@ class CirclePlotsWidget(QtWidgets.QWidget):
@
QtCore
.
Slot
(
dict
)
def
localise_text
(
self
,
text
:
dict
)
->
int
:
"""
Update the text displayed on the axis' and legend of
tim
e plots.
Update the text displayed on the axis' and legend of
circl
e plots.
"""
self
.
pressure_plot
.
setLabel
(
"left"
,
text
[
"plot_axis_label_pressure"
])
self
.
pressure_plot
.
legend
.
clear
()
self
.
pressure_plot
.
legend
.
addItem
(
self
.
pressure_line
,
text
[
"plot_line_label_pressure"
])
self
.
flow_plot
.
setLabel
(
"left"
,
text
[
"plot_axis_label_flow"
])
self
.
flow_plot
.
legend
.
clear
()
self
.
flow_plot
.
legend
.
addItem
(
self
.
flow_line
,
name
=
text
[
"plot_line_label_flow"
])
self
.
volume_plot
.
setLabel
(
"left"
,
text
[
"plot_axis_label_volume"
])
self
.
volume_plot
.
setLabel
(
"bottom"
,
text
[
"plot_axis_label_time"
])
self
.
volume_plot
.
legend
.
clear
()
self
.
volume_plot
.
legend
.
addItem
(
self
.
volume_line
,
name
=
text
[
"plot_line_label_volume"
])
self
.
pressure_flow_plot
.
setLabel
(
"left"
,
text
[
"plot_axis_label_pressure"
])
self
.
pressure_flow_plot
.
setLabel
(
"bottom"
,
text
[
"plot_axis_label_flow"
])
self
.
pressure_flow_plot
.
legend
.
clear
()
self
.
pressure_flow_plot
.
legend
.
add
item
(
self
.
pressure_flow_line
,
name
=
text
[
"plot_line_label_pressure_flow"
])
self
.
pressure_flow_plot
.
legend
.
add
Item
(
self
.
pressure_flow_line
,
text
[
"plot_line_label_pressure_flow"
])
self
.
flow_volume_plot
.
setLabel
(
"left"
,
text
[
"plot_axis_label_flow"
])
self
.
flow_volume_plot
.
setLabel
(
"bottom"
,
text
[
"plot_axis_label_volume"
])
self
.
flow_volume_plot
.
legend
.
clear
()
self
.
flow_volume_plot
.
legend
.
add
item
(
self
.
volume_flow_line
,
name
=
text
[
"plot_line_label_flow_volume"
])
self
.
flow_volume_plot
.
legend
.
add
Item
(
self
.
flow_volume_line
,
text
[
"plot_line_label_flow_volume"
])
self
.
volume_pressure_plot
.
setLabel
(
"left"
,
text
[
"plot_axis_label_volume"
])
self
.
volume_pressure_plot
.
setLabel
(
"bottom"
,
text
[
"plot_axis_label_pressure"
])
self
.
volume_pressure_plot
.
legend
.
clear
()
self
.
volume_pressure_plot
.
legend
.
additem
(
self
.
volume_pressure_line
,
name
=
text
[
"plot_line_label_volume_pressure"
])
self
.
volume_pressure_plot
.
legend
.
addItem
(
self
.
volume_pressure_line
,
text
[
"plot_line_label_volume_pressure"
])
return
0
...
...
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