hi, I have a set of datapoints such as
val=3; (*this value is calculated before in the program, so it not known a priori*)
x={0,1,2,3};
data = Table[0, {val}];
For[i = 1, i < val + 1, i++,
data[[i]] = x+i];
Now I can plot each of these data with ListPlot as
ListPlot[Transpose[{x,data[[1]]}]]
and if I want to plot more than one I can do
ListPlot[{Transpose[{x, data[[1]]}], Transpose[{x, data[[2]]}]}]
but how can I plot all of them in one code single line, by considering that val is calculated before in the program
Is there a way to do something like
For[i = 1, i < val + 1, i++, ListPlot[Transpose[{x,data[
]}]]......]?
I was thinking about the use of Show and overlap the graphs, but probably there is an easier solution
Any tutorial added to the answer is more than welcome
Thanks
Smazzu