'''
Line Scan 
'''

 
#setup_plotting(plot_list = (sin,out))

#set_preference(Preference.MANUAL_RANGE, [0, 80])

setup_plotting(range = [-20,100])

#a= lscan(inp, (sin,out,arr), 0, 40, 10, 0.2)

#setup_plotting(range = "none")
#a= ascan((inp,out), (sin,out,arr), (0,0), (40,40), (10,10), 0.01)
#a= ascan((inp,ao1, ao2), (sin,out,arr), (0,0,0), (40,40, 40), (4.0,4.0,4.0), 0.01)
#a= ascan((inp,ao1, ao2), (sin), (0,0,0), (40,40, 40), (5,6,7), 0.01)





data_1d = [10.0, 20.0, 30.0, 40.0, 50.0]
data_2d = [ data_1d, data_1d, data_1d, data_1d, data_1d]
data_3d = [ data_2d, data_2d , data_2d, data_2d, data_2d]
data_x = [1.0, 2.0, 3.0, 4.0, 5.0]
data_y = [2.0, 4.0, 6.0, 8.0, 10.0]


setup_plotting(range = [-20,100])
#1d-plot with optional xdata
plot(data_1d, title = "1d", xdata = data_x)


setup_plotting(defaults=True)
#2d-plot with optional xdata and ydata
plot(data_2d, title = "2d", xdata = data_x, ydata = data_y)

#3d-plot
plot(data_3d, title = "3d")
 
#3 plots in the save panel
plot([data_1d, data_2d, data_3d], ["1d", "2d", "3d"])

