示例#1
0
def test_plot_realigned_1d():
    d = make_events_dataset(ndim=1)
    tbins = sc.Variable(dims=['tof'], unit=sc.units.us, values=np.arange(100.))
    r = sc.realign(d, {'tof': tbins})
    plot(r['x', 25])
示例#2
0
def test_plot_1d_events_data_with_nparray_bins():
    d = make_events_dataset(ndim=1)
    plot(d, bins={'tof': np.linspace(0.0, 105.0, 50)})
示例#3
0
def test_plot_1d_events_data_with_Variable_bins():
    d = make_events_dataset(ndim=1)
    bins = sc.Variable(['tof'],
                       values=np.linspace(0.0, 105.0, 50),
                       unit=sc.units.us)
    plot(d, bins={'tof': bins})
示例#4
0
def test_plot_1d_events_data_with_int_bins():
    d = make_events_dataset(ndim=1)
    plot(d, bins={'tof': 50})
示例#5
0
def test_plot_1d_events_data_with_bool_bins():
    d = make_events_dataset(ndim=1)
    plot(d, bins={'tof': True})
示例#6
0
def test_plot_2d_events_data_with_nparray_bins_and_extra_dim():
    d = make_events_dataset(ndim=2)
    plot(d, bins={'tof': np.linspace(0.0, 105.0, 50)})
示例#7
0
def test_plot_3d_events_data_with_int_bins():
    d = make_events_dataset(ndim=3)
    plot(d, bins=50)
示例#8
0
def test_plot_3d_events_data_with_nparray_bins():
    d = make_events_dataset(ndim=3)
    plot(d, bins=np.linspace(0.0, 105.0, 50))