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
2
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
5b39eabe
Commit
5b39eabe
authored
1 year ago
by
Lan Dam
Browse files
Options
Downloads
Patches
Plain Diff
adjust plotting_bot_pixel in get_heitht()
parent
caab6ec0
No related branches found
No related tags found
1 merge request
!136
tps scrollbar, label's position, color, height for each
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sohstationviewer/view/plotting/plotting_widget/plotting_axes.py
+11
-5
11 additions, 5 deletions
...tionviewer/view/plotting/plotting_widget/plotting_axes.py
with
11 additions
and
5 deletions
sohstationviewer/view/plotting/plotting_widget/plotting_axes.py
+
11
−
5
View file @
5b39eabe
...
@@ -352,17 +352,23 @@ class PlottingAxes:
...
@@ -352,17 +352,23 @@ class PlottingAxes:
)
)
)
)
def
get_height
(
self
,
ratio
,
bw_plots_distance
=
0.0015
):
def
get_height
(
self
,
ratio
:
float
,
bw_plots_distance
:
float
=
0.0015
,
pixel_height
:
float
=
19
)
->
float
:
"""
"""
Calculate new plot
'
s bottom position and return plot
'
s height.
Calculate new plot
'
s bottom position and return plot
'
s height.
:param ratio: float - ratio of the plot height on the BASIC_HEIGHT
:param ratio: ratio of the plot height on the BASIC_HEIGHT
:param bw_plots_distance: float - distance between plots
:param bw_plots_distance: distance between plots
:return plot_h: float - height of the plot
:param pixel_height: height of plot in pixel (
for TPS/TPS legend, height of each day row)
:return plot_h: height of the plot
"""
"""
plot_h
=
constants
.
BASIC_HEIGHT
*
ratio
# ratio with figure height
plot_h
=
constants
.
BASIC_HEIGHT
*
ratio
# ratio with figure height
self
.
parent
.
plotting_bot
-=
plot_h
+
bw_plots_distance
self
.
parent
.
plotting_bot
-=
plot_h
+
bw_plots_distance
self
.
parent
.
plotting_bot_pixel
+=
19
*
ratio
bw_plots_distance_pixel
=
3000
*
bw_plots_distance
self
.
parent
.
plotting_bot_pixel
+=
(
pixel_height
*
ratio
+
bw_plots_distance_pixel
)
return
plot_h
return
plot_h
def
add_ruler
(
self
,
color
):
def
add_ruler
(
self
,
color
):
...
...
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