Here are the examples of the python api bokeh.transform.factor_hatch taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
3
View Source File : test_transform.py
License : MIT License
Project Creator : rthorst
License : MIT License
Project Creator : rthorst
def test_basic(self):
t = bt.factor_hatch("foo", ["+", "-"], ["foo", "bar"], start=1, end=2)
assert isinstance(t, dict)
assert set(t) == {"field", "transform"}
assert t['field'] == "foo"
assert isinstance(t['transform'], CategoricalPatternMapper)
assert t['transform'].patterns == ["+", "-"]
assert t['transform'].factors == ["foo", "bar"]
assert t['transform'].start == 1
assert t['transform'].end == 2
def test_defaults(self):
3
View Source File : test_transform.py
License : MIT License
Project Creator : rthorst
License : MIT License
Project Creator : rthorst
def test_defaults(self):
t = bt.factor_hatch("foo", ["+", "-"], ["foo", "bar"])
assert isinstance(t, dict)
assert set(t) == {"field", "transform"}
assert t['field'] == "foo"
assert isinstance(t['transform'], CategoricalPatternMapper)
assert t['transform'].patterns == ["+", "-"]
assert t['transform'].factors == ["foo", "bar"]
assert t['transform'].start == 0
assert t['transform'].end is None
class Test_factor_mark(object):