Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
FreeForestML
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CERN
fsauerbu
FreeForestML
Merge requests
!63
Resolve "Density switch does not change the y_axis label"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Density switch does not change the y_axis label"
72-density-switch-does-not-change-the-y_axis-label
into
master
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Frank Sauerburger
requested to merge
72-density-switch-does-not-change-the-y_axis-label
into
master
4 years ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
Closes
#72 (closed)
Edited
4 years ago
by
Frank Sauerburger
0
0
Merge request reports
Viewing commit
7db73cad
Show latest version
1 file
+
3
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Verified
7db73cad
Overwrite y-label if density=True
· 7db73cad
Frank Sauerburger
authored
4 years ago
nnfwtbn/plot.py
+
3
−
0
Options
@@ -263,6 +263,9 @@ def hist(dataframe, variable, bins, stacks, selection=None,
if
isinstance
(
denominator
,
int
)
and
stacks
[
denominator
]
==
stack
:
denominator
=
stack
if
density
:
uhepp_obj
.
y_label
=
"
Events (a.u.)
"
uhepp_obj
.
ratio_label
=
ratio_label
if
ratio_range
:
uhepp_obj
.
ratio_min
=
ratio_range
[
0
]
Loading