plotastic.dimensions package
Submodules
plotastic.dimensions.dataframetool module
plotastic.dimensions.dims module
- class plotastic.dimensions.dims.Dims(y: str = None, x: str = None, hue: str = None, row: str = None, col: str = None)[source]
Bases:
object
- getvalues(keys: list[str] | tuple[str], *args)[source]
Converts a list of dimensions into a list of dimension values, e.g. :param keys: [“x”, “y”, “col”] :return: e.g. [“smoker”, “tips”, “day”]
- property has_hue: bool
- switch(*keys: str, inplace=False, verbose=True, **kwarg: str | Dict[str, str]) Dims | DataAnalysis [source]
Set attributes. Detects Duplicates, switches automatically :param keys: Two dimensions to switch. Only 2 Positional arguments allowed. Use e.g. dims.switch(“x”, “hue”, **kwargs) :param inplace: Decide if this switching should change the dims object permanently (analogously to pandas dataframe). If False, you should pass return value into a variable :param verbose: Whether to print out switched values :param kwarg: e.g. dict(row=”smoker”) :return: dims object with switched parameters