grapa.shared.funcgui.AlterListItem
- class grapa.shared.funcgui.AlterListItem(label: str, alter: list, typeplot: str, doc: str = '')
Bases:
objectOne item in the list of possible data transforms a Curve does offer.
In essence a dataclass, yet need backwards compatibility. Replaces syntax [“label”, [“alterx”, “altery”], “semilogy”]. Can be instantiated by AlterListItem(*legacy_value).
- Parameters:
label – The label to shown in the GUI
alter – a length-2 list [“alter_x”, “alter_y”]. Can be [“”, “”].
typeplot – one of TYPEPLOTS items
doc – a short human-readable description
- __init__(label: str, alter: list, typeplot: str, doc: str = '')
Methods
__init__(label, alter, typeplot[, doc])Attributes
TYPEPLOTSTYPEPLOT_DEF- classmethod item_neutral()
- Returns:
an AlterListItem instance that does not transform the data.