Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SOHViewer
Manage
Activity
Members
Labels
Plan
Issues
14
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software Public
PASSOFT
SOHViewer
Commits
fb889a08
Commit
fb889a08
authored
1 year ago
by
Lan Dam
Browse files
Options
Downloads
Patches
Plain Diff
fix bug lacking of chan_db_info argument when calling set_axes_ylim()
parent
493aaceb
No related branches found
Branches containing commit
No related tags found
1 merge request
!144
fix bug lacking of chan_db_info argument when calling set_axes_ylim()
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sohstationviewer/view/plotting/plotting_widget/plotting.py
+6
-0
6 additions, 0 deletions
sohstationviewer/view/plotting/plotting_widget/plotting.py
sohstationviewer/view/plotting/plotting_widget/plotting_widget.py
+2
-1
2 additions, 1 deletion
...onviewer/view/plotting/plotting_widget/plotting_widget.py
with
8 additions
and
1 deletion
sohstationviewer/view/plotting/plotting_widget/plotting.py
+
6
−
0
View file @
fb889a08
...
...
@@ -37,6 +37,7 @@ class Plotting:
self
.
parent
.
plotting_bot
,
plot_h
,
has_min_max_lines
=
False
)
ax
.
x
=
None
ax
.
plot
([
0
],
[
0
],
linestyle
=
""
)
ax
.
chan_db_info
=
None
return
ax
def
plot_multi_color_dots
(
self
,
c_data
,
chan_db_info
,
chan_id
,
...
...
@@ -120,6 +121,7 @@ class Plotting:
ax
.
x
=
x
else
:
ax
.
linkedX
=
x
ax
.
chan_db_info
=
chan_db_info
return
ax
def
plot_up_down_dots
(
self
,
c_data
,
chan_db_info
,
chan_id
,
ax
,
linked_ax
):
...
...
@@ -184,6 +186,7 @@ class Plotting:
ax
.
x
=
x
else
:
ax
.
linkedX
=
x
ax
.
chan_db_info
=
chan_db_info
return
ax
def
plot_time_dots
(
self
,
c_data
,
chan_db_info
,
chan_id
,
ax
,
linked_ax
):
...
...
@@ -226,6 +229,7 @@ class Plotting:
ax
.
x_list
=
x_list
else
:
ax
.
linkedX
=
x_list
ax
.
chan_db_info
=
chan_db_info
return
ax
def
plot_lines_dots
(
self
,
c_data
,
chan_db_info
,
chan_id
,
...
...
@@ -315,6 +319,7 @@ class Plotting:
else
:
ax
.
linkedX
=
x_list
ax
.
linkedY
=
y_list
ax
.
chan_db_info
=
chan_db_info
return
ax
def
plot_lines_s_rate
(
self
,
c_data
,
chan_db_info
,
chan_id
,
ax
,
linked_ax
):
...
...
@@ -399,4 +404,5 @@ class Plotting:
zorder
=
constants
.
Z_ORDER
[
'
DOT
'
])
ax
.
x_list
=
x_list
ax
.
y_list
=
y_list
ax
.
chan_db_info
=
chan_db_info
return
ax
This diff is collapsed.
Click to expand it.
sohstationviewer/view/plotting/plotting_widget/plotting_widget.py
+
2
−
1
View file @
fb889a08
...
...
@@ -604,7 +604,8 @@ class PlottingWidget(QtWidgets.QScrollArea):
pass
if
new_min_y
is
not
None
:
self
.
plotting_axes
.
set_axes_ylim
(
ax
,
new_min_y
,
new_max_y
)
self
.
plotting_axes
.
set_axes_ylim
(
ax
,
new_min_y
,
new_max_y
,
ax
.
chan_db_info
)
def
draw
(
self
):
"""
...
...
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