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