|
|
@ -211,12 +211,12 @@ def test_logarithmic_big_scale(): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_value_formatter(): |
|
|
|
def test_value_formatter(): |
|
|
|
line = Line(value_formatter=lambda x: str(x) + '‰') |
|
|
|
line = Line(value_formatter=lambda x: str(x) + u('‰')) |
|
|
|
line.add('_', [10 ** 4, 10 ** 5, 23 * 10 ** 4]) |
|
|
|
line.add('_', [10 ** 4, 10 ** 5, 23 * 10 ** 4]) |
|
|
|
q = line.render_pyquery() |
|
|
|
q = line.render_pyquery() |
|
|
|
assert len(q(".y.axis .guides")) == 11 |
|
|
|
assert len(q(".y.axis .guides")) == 11 |
|
|
|
assert q(".axis.y text").map(texts) == list(map( |
|
|
|
assert q(".axis.y text").map(texts) == list(map( |
|
|
|
lambda x: str(x) + '‰', map(float, range(20000, 240000, 20000)))) |
|
|
|
lambda x: str(x) + u('‰'), map(float, range(20000, 240000, 20000)))) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_logarithmic_small_scale(): |
|
|
|
def test_logarithmic_small_scale(): |
|
|
|