The Plotting ConfigΒΆ
Use the config file to fine-tune your plots.
Valid options:
Option Default Description data
"data"
Regular expression for values in dataset_col toplot as scatter markersweights
None
Which weight columns to use for plotting. yscale
"linear"
Should y-axis be on a linear
or alog
scale.lumi
1
Multiply all simulated datasets by this value. ylabel
Give the Y-axis a title. legend
Control the legend placement options. A dictionary ofkwarg pairs passed directly tomatplotlib.pyplot.legend()
limits
Set the axis ranges. Takes a dictionary withx
and / ory
asthe keys, and a list with upper and lower bounds.annotations
Add text to the plot. Should be a list of text labels, each describedby a dictionary containing thetext
and theposition
. Allother paramers are passed as keyword-argument pairs to
Todo
Describe the bin_variable_replacements
and value_replacements
options for the config.
See also
An example of a plotting config cms_public_tutorial demo repository: https://gitlab.cern.ch/fast-hep/public/fast_cms_public_tutorial/blob/master/plot_config.yml