This commit is contained in:
24
script/tutorial/31_UsersPlots.js
Executable file
24
script/tutorial/31_UsersPlots.js
Executable file
@@ -0,0 +1,24 @@
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Direct creation of plots
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
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]
|
||||
|
||||
//1d-plot with optional xdata
|
||||
plot(data_1d, name = undefined, xdata = data_x, ydata = undefined, title = "1d")
|
||||
|
||||
//2d-plot with optional xdata and ydata
|
||||
plot(data_2d, name = undefined, xdata = data_x, ydata = data_y, title = "2d")
|
||||
|
||||
//3d-plot
|
||||
plot(data_3d, name = undefined, xdata = undefined, ydata = undefined, title = "3d")
|
||||
|
||||
//3 plots in the save panel
|
||||
plot([data_1d, data_2d, data_3d], ["1d", "2d", "3d"])
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user