Пример #1
0
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)
Пример #2
0
 def __init__(self, range=(1, 6), **kwargs):
     self.palette = area_pal(range)
     scale_datetime.__init__(self, **kwargs)
Пример #3
0
 def __init__(self, range=(1, 6), **kwargs):
     self.palette = area_pal(range)
     scale_continuous.__init__(self, **kwargs)
Пример #4
0
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)