示例#1
0
def test__get_scale_numeric_range_linear_axis():
    s = bph._get_scale(Range1d(), "linear")
    assert isinstance(s, LinearScale)

    s = bph._get_scale(Range1d(), "datetime")
    assert isinstance(s, LinearScale)

    s = bph._get_scale(Range1d(), "auto")
    assert isinstance(s, LinearScale)
示例#2
0
def test__get_scale_numeric_range_linear_axis():
    s = _get_scale(Range1d(), "linear")
    assert isinstance(s, LinearScale)

    s = _get_scale(Range1d(), "datetime")
    assert isinstance(s, LinearScale)

    s = _get_scale(Range1d(), "auto")
    assert isinstance(s, LinearScale)
示例#3
0
    def set_yscale(self, *args, **kwargs):
        """
        Thisf unction ...
        :param args:
        :param kwargs:
        :return:
        """

        from bokeh.plotting.helpers import _get_scale

        scale = args[0]
        self._plot.y_scale = _get_scale(self._plot.y_range, scale)
示例#4
0
def test__get_scale_factor_range():
    s = bph._get_scale(FactorRange(), "auto")
    assert isinstance(s, CategoricalScale)
示例#5
0
def test__get_scale_numeric_range_log_axis():
    s = bph._get_scale(DataRange1d(), "log")
    assert isinstance(s, LogScale)
示例#6
0
def test__get_scale_factor_range():
    s = _get_scale(FactorRange(), "auto")
    assert isinstance(s, CategoricalScale)
示例#7
0
def test__get_scale_numeric_range_log_axis():
    s = _get_scale(DataRange1d(), "log")
    assert isinstance(s, LogScale)