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)
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)
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)
def test__get_scale_factor_range(): s = bph._get_scale(FactorRange(), "auto") assert isinstance(s, CategoricalScale)
def test__get_scale_numeric_range_log_axis(): s = bph._get_scale(DataRange1d(), "log") assert isinstance(s, LogScale)
def test__get_scale_factor_range(): s = _get_scale(FactorRange(), "auto") assert isinstance(s, CategoricalScale)
def test__get_scale_numeric_range_log_axis(): s = _get_scale(DataRange1d(), "log") assert isinstance(s, LogScale)