def test__check_compatible_scale_and_ranges_compat_numeric(): plot = Plot(x_scale=LinearScale(), x_range=Range1d()) check = plot._check_compatible_scale_and_ranges() assert check == [] plot = Plot(y_scale=LogScale(), y_range=DataRange1d()) check = plot._check_compatible_scale_and_ranges() assert check == []
def test_plot_raises_error_if_y_mapper_type_and_y_scale_are_set(): with pytest.raises(ValueError): Plot(y_mapper_type="log", y_scale=LogScale())