Ejemplo n.º 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])
Ejemplo n.º 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)})
Ejemplo n.º 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})
Ejemplo n.º 4
0
def test_plot_1d_events_data_with_int_bins():
    d = make_events_dataset(ndim=1)
    plot(d, bins={'tof': 50})
Ejemplo n.º 5
0
def test_plot_1d_events_data_with_bool_bins():
    d = make_events_dataset(ndim=1)
    plot(d, bins={'tof': True})
Ejemplo n.º 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)})
Ejemplo n.º 7
0
def test_plot_3d_events_data_with_int_bins():
    d = make_events_dataset(ndim=3)
    plot(d, bins=50)
Ejemplo n.º 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))