def test_area_pal(): palette = area_pal((0, 10)) x = np.arange(0, 11) xsq = (x * .1)**2 result = palette(xsq) npt.assert_allclose(result, x)
def __init__(self, range=(1, 6), **kwargs): self.palette = area_pal(range) scale_datetime.__init__(self, **kwargs)
def __init__(self, range=(1, 6), **kwargs): self.palette = area_pal(range) scale_continuous.__init__(self, **kwargs)