INNER CODE UNIT · Python

_wrap_list_arg

lgienapp/aquarel · aquarel/theme.py:9

def _wrap_list_arg(arg):
    if arg is None:
        return arg
    if type(arg) == list:
        return arg
    else:
        return [arg]


class Theme:
    # Options for axis drawing
    _axis_options = ["both", "x", "y"]
    # Options for locations
    _location_options = ["left", "right", "bottom", "top", "center"]
    # Options for horizontal alignment
    _horizontal_alignment_options = [
        "center",
        "right",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…