Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds the
slices
variable setting that allows slicing a histogram during Plotting. Example:Exemplary task call from hh2bbww analysis:
This selects all bins from bin 5 to bin 15. You could also select bins from some x_min to x_max range by passing e.g.
--variable-settings "jet1_pt,slice=50j;200j"
This only slices the histogram itself but does not modify the x_min and x_max range of the plot since they are taken from the variable inst, but this can be modified via
--variable-settings "jet1_pt,x_min=50,x_max=200"
. Already having this functionality makes this PR a bit pointless, but it also adds some functionality to the SettingsParameters and slicing might become useful for other use cases.Closes #374