コード例 #1
0
ファイル: test_plots.py プロジェクト: sherry-tan/bokeh
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 == []
コード例 #2
0
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())