Data is a construct that automatically converts various inputs into the underlying data
sequences required by the plot functions in order to enable a form of syntactic sugar.
Example:
Data input examples:
Y sequence only:
val y = Seq(18, 24, 5, 9, 0, 1, 7)
in the above case, a X sequence holding the indexes of the
sequence above is going to be mapped to y in order to create
a sequence of coordinates:
Seq(1, 2, 3, 4, 5, 6, 7) -> y
X, Y data sequences:
Seq(1,2,3) -> Seq(7,9,12)
Sequence of tuple:
Seq(12, 24, 3) zip Seq(7, 9, 12)
Sequence to function:
(-math.Pi to math.Pi by 0.1) -> math.sin _
Data is a construct that automatically converts various inputs into the underlying data sequences required by the plot functions in order to enable a form of syntactic sugar.
Data input examples: