samples_cycler

hep_spt.samples_cycler(smps, *args, **kwargs)[source]

Generate a cycler.Cycler object were the labels are defined by “smps”, and the other parameters are left to the user. This function is useful when one wants to plot several samples with different matplotlib styles. This function allows to create a cycler.Cycler object to loop over the given samples and associated formats, where the “label” key is filled with the values from “smps”.

Parameters
  • smps (list(str)) – list of names for the samples.

  • args (tuple) – position argument to cycler.cycler().

  • kwargs (dict) – keyword arguments to cycler.cycler().

Returns

Object with the styles for each sample and a defined “label” key.

Return type

cycler.Cycler