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
Merge requests
!171
Correct RT130 disk usage display
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Correct RT130 disk usage display
i148_disk_usage_display
into
master
Overview
0
Commits
3
Pipelines
2
Changes
3
Merged
Lan Dam
requested to merge
i148_disk_usage_display
into
master
2 years ago
Overview
0
Commits
3
Pipelines
2
Changes
2
Expand
closes
#148 (closed)
👍
0
👎
0
Merge request reports
Viewing commit
ceabe8b4
Prev
Next
Show latest version
2 files
+
14
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
ceabe8b4
display Disk Usage with unit in the ticks and in the data point clicked
· ceabe8b4
Lan Dam
authored
2 years ago
sohstationviewer/view/plotting/plotting_widget/plotting_axes.py
+
8
−
1
Options
@@ -9,7 +9,7 @@ from matplotlib.backends.backend_qt5agg import (
FigureCanvasQTAgg
as
Canvas
)
from
sohstationviewer.controller.plotting_data
import
(
get_time_ticks
,
get_unit_bitweight
)
get_time_ticks
,
get_unit_bitweight
,
get_disk_size_format
)
from
sohstationviewer.conf
import
constants
from
sohstationviewer.view.util.color
import
clr
@@ -299,6 +299,13 @@ class PlottingAxes:
:param max_y: maximum of y values
:param chan_db_info: info of channel from database
"""
if
chan_db_info
[
'
channel
'
].
startswith
(
'
Disk Usage
'
):
ax
.
set_yticks
([
org_min_y
,
org_max_y
])
min_y_label
=
get_disk_size_format
(
org_min_y
)
max_y_label
=
get_disk_size_format
(
org_max_y
)
ax
.
set_yticklabels
([
min_y_label
,
max_y_label
])
return
if
chan_db_info
[
'
channel
'
]
==
'
GPS Lk/Unlk
'
:
# to avoid case that the channel doesn't have Lk or Unlk
# preset min, max value so that GPS Clock Power is always in the
Loading