def __init__(self, max_size=6, **kwargs): self.palette = abs_area(max_size) scale_continuous.__init__(self, **kwargs)
def test_abs_area(): x = np.arange(0, 1.03, .1)**2 palette = abs_area(5) result = palette(x) assert min(result) == 0 assert max(result) == 5