Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SOHViewer
Manage
Activity
Members
Labels
Plan
Issues
11
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
3
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
f5053b94
Commit
f5053b94
authored
1 year ago
by
Lan Dam
Browse files
Options
Downloads
Patches
Plain Diff
change x0 to x_bottom, x_1 to x_top to be more descriptive
parent
9aa2310d
No related branches found
No related tags found
3 merge requests
!149
Fix bug happen when zooming in overlap section
,
!148
fix zooming, order, y for the combination of 2 channels GPS_lk_Unlk and GPS_clock_power
,
!145
Change to use matplotlib's lim for zooming
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sohstationviewer/view/plotting/plotting_widget/plotting.py
+2
-2
2 additions, 2 deletions
sohstationviewer/view/plotting/plotting_widget/plotting.py
sohstationviewer/view/plotting/plotting_widget/plotting_widget.py
+12
-8
12 additions, 8 deletions
...onviewer/view/plotting/plotting_widget/plotting_widget.py
with
14 additions
and
10 deletions
sohstationviewer/view/plotting/plotting_widget/plotting.py
+
2
−
2
View file @
f5053b94
...
...
@@ -181,8 +181,8 @@ class Plotting:
sample_no_pos
=
[
0.25
,
0.75
],
chan_db_info
=
chan_db_info
,
linked_ax
=
linked_ax
)
ax
.
x
0
=
np
.
array
(
points_list
[
0
])
ax
.
x
1
=
np
.
array
(
points_list
[
1
])
ax
.
x
_bottom
=
np
.
array
(
points_list
[
0
])
ax
.
x
_top
=
np
.
array
(
points_list
[
1
])
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
+
12
−
8
View file @
f5053b94
...
...
@@ -569,6 +569,18 @@ class PlottingWidget(QtWidgets.QScrollArea):
if
not
first_time
:
new_min_y
=
None
new_max_y
=
None
if
hasattr
(
ax
,
'
x_top
'
):
# plot_up_down_dots
new_x_bottom_indexes
=
np
.
where
(
(
ax
.
x_bottom
>=
self
.
min_x
)
&
(
ax
.
x_bottom
<=
self
.
max_x
))[
0
]
ax
.
bottom_total_point_lbl
.
set_text
(
new_x_bottom_indexes
.
size
)
new_x_top_indexes
=
np
.
where
(
(
ax
.
x_top
>=
self
.
min_x
)
&
(
ax
.
x_top
<=
self
.
max_x
))[
0
]
ax
.
top_total_point_lbl
.
set_text
(
new_x_top_indexes
.
size
)
if
hasattr
(
ax
,
'
x_list
'
):
if
not
hasattr
(
ax
,
'
y_list
'
):
# plot_time_dots and plot_multi_color_dots
...
...
@@ -595,14 +607,6 @@ class PlottingWidget(QtWidgets.QScrollArea):
new_min_y
=
min
(
tr_min_ys
)
new_max_y
=
max
(
tr_max_ys
)
ax
.
center_total_point_lbl
.
set_text
(
total_points
)
else
:
# plot_up_down_dots
new_x0_indexes
=
np
.
where
(
(
ax
.
x0
>=
self
.
min_x
)
&
(
ax
.
x0
<=
self
.
max_x
))[
0
]
ax
.
bottom_total_point_lbl
.
set_text
(
new_x0_indexes
.
size
)
new_x1_indexes
=
np
.
where
(
(
ax
.
x1
>=
self
.
min_x
)
&
(
ax
.
x1
<=
self
.
max_x
))[
0
]
ax
.
top_total_point_lbl
.
set_text
(
new_x1_indexes
.
size
)
if
new_min_y
is
not
None
:
self
.
plotting_axes
.
set_axes_ylim
(
...
...
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