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