I have data files which are in "text tab delimited". I have imported these files using the following function:
data = Map[Import[#, "Data"] &,FileNames["*.txt", {"directoryname"}]]
I want to use ListPlot to plot 60 functions (not at the same time), but I want to show the name of the files that I have imported in the PlotLegends so that when I plot each file, the legends automatically show the name of the file.
Here is the rest of the code:
e[t_] := data[[t]];
ListPlot[Table[e[t][[9]], {t, 1, 59, 20}], Joined -> True, PlotRange -> All,DataRange -> {1000, 1100},PlotLegends -> Automatic]
Thanks
ListPlot
a selection of files is chosen and their and (only) this filenames should be in the legend, right? $\endgroup$