@linewidth.setter
    def linewidth(self, value):
        if type(value) not in [float, int]:
            raise Exception("Line width should be a float or an int")
        if value < 0:
            raise Exception("Line width should be positive")
        self._linewidth = value
dataset/ETHPy150Open glue-viz/glue/glue/core/visual.py/VisualAttributes.linewidth/original