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
37e7a88c
Commit
37e7a88c
authored
1 year ago
by
Lan Dam
Browse files
Options
Downloads
Patches
Plain Diff
Remove noneed plotting code
parent
8c498265
No related branches found
No related tags found
1 merge request
!147
Remove noneed plotting code
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sohstationviewer/view/plotting/plotting_widget/plotting.py
+5
-14
5 additions, 14 deletions
sohstationviewer/view/plotting/plotting_widget/plotting.py
sohstationviewer/view/plotting/plotting_widget/plotting_widget.py
+0
-20
0 additions, 20 deletions
...onviewer/view/plotting/plotting_widget/plotting_widget.py
with
5 additions
and
34 deletions
sohstationviewer/view/plotting/plotting_widget/plotting.py
+
5
−
14
View file @
37e7a88c
...
...
@@ -116,10 +116,8 @@ class Plotting:
self
.
plotting_axes
.
set_axes_info
(
ax
,
[
total_samples
],
sample_no_colors
=
sample_no_colors
,
chan_db_info
=
chan_db_info
,
linked_ax
=
linked_ax
)
if
linked_ax
is
None
:
ax
.
x_list
=
c_data
[
'
times
'
]
else
:
ax
.
linkedX
=
x
ax
.
x_list
=
c_data
[
'
times
'
]
ax
.
chan_db_info
=
chan_db_info
return
ax
...
...
@@ -225,10 +223,7 @@ class Plotting:
linestyle
=
''
,
zorder
=
constants
.
Z_ORDER
[
'
LINE
'
],
color
=
clr
[
color
],
picker
=
True
,
pickradius
=
3
)
if
linked_ax
is
None
:
ax
.
x_list
=
x_list
else
:
ax
.
linkedX
=
x_list
ax
.
x_list
=
x_list
ax
.
chan_db_info
=
chan_db_info
return
ax
...
...
@@ -313,12 +308,8 @@ class Plotting:
mec
=
clr
[
d_color
],
picker
=
True
,
pickradius
=
3
)
if
linked_ax
is
None
:
ax
.
x_list
=
x_list
ax
.
y_list
=
y_list
else
:
ax
.
linkedX
=
x_list
ax
.
linkedY
=
y_list
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
+
0
−
20
View file @
37e7a88c
...
...
@@ -467,26 +467,6 @@ class PlottingWidget(QtWidgets.QScrollArea):
ruler
.
set_visible
(
True
)
ruler
.
xy1
=
(
xdata
,
0
)
ruler
.
xy2
=
(
xdata
,
self
.
bottom
)
try
:
if
ruler
==
self
.
zoom_marker2
:
# make zoom_marker2 follow mouse.
# need to disconnect when state of rulers change
self
.
follower
=
self
.
fig
.
canvas
.
mpl_connect
(
"
motion_notify_event
"
,
self
.
zoom_marker2_follow_mouse
)
except
AttributeError
:
pass
def
zoom_marker2_follow_mouse
(
self
,
mouseevent
):
"""
Set zoom_marker2
'
s to follow mouse
'
s x.
:param mouseevent: motion_notify_event - event to help keeping track
of mouse move
"""
xdata
=
self
.
get_timestamp
(
mouseevent
)
self
.
zoom_marker2
.
xy1
=
(
xdata
,
0
)
self
.
zoom_marker2
.
xy2
=
(
xdata
,
self
.
bottom
)
self
.
draw
()
def
keyPressEvent
(
self
,
event
):
"""
...
...
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