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
Merge requests
!324
fontsize options
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
fontsize options
i181_fontsize_options
into
develop
Overview
5
Commits
16
Pipelines
9
Changes
10
1 unresolved thread
Hide all comments
Merged
Lan Dam
requested to merge
i181_fontsize_options
into
develop
9 months ago
Overview
5
Commits
16
Pipelines
9
Changes
1
1 unresolved thread
Hide all comments
Expand
closes
#181 (closed)
Implement option Base Font Size in Menu Options that allows user to select a base font size for texts in plotting.
For font size from 9 to 12, plot's label will be split into 2 lines if the plot has no additional info.
Plot height and figure height will be spread out according to selected font size.
Edited
4 months ago
by
Lan Dam
👍
0
👎
0
Merge request reports
Viewing commit
b5faa9de
Prev
Next
Show latest version
1 file
+
4
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
b5faa9de
change expected_base_plot_font_sizes assigning to list comprehension
· b5faa9de
Lan Dam
authored
6 months ago
sohstationviewer/conf/config_processor.py
+
4
−
3
Options
@@ -186,9 +186,10 @@ class ConfigProcessor:
base_plot_font_size
=
self
.
config
.
get
(
'
MiscOptions
'
,
'
base_plot_font_size
'
)
expected_base_plot_font_sizes
=
set
(
map
(
str
,
range
(
constants
.
MIN_FONTSIZE
,
constants
.
MAX_FONTSIZE
+
1
)))
expected_base_plot_font_sizes
=
[
str
(
i
)
for
i
in
range
(
constants
.
MIN_FONTSIZE
,
constants
.
MAX_FONTSIZE
+
1
)
]
if
base_plot_font_size
not
in
expected_base_plot_font_sizes
:
raise
BadConfigError
(
Loading