I am trying to plot data that comes in the form of one x-axis vs multiple y-axis on the same plot. I would like the color of each line to spread itself out through my desired color map (spectrum coloring).
An example of the data I want plot can be found here: http://pastebin.com/R8nC0zq4
If I copy this data set into MATLAB, I can set up my plot to show an example of how I want it to ultimately look in pgfplots. Consider the pastebin code copied into
MATLAB, residing in a variable named
cmp = jet(10); hLine = plot(data(:,1),data(:,2:end)); %plot x vs all the y columns (10) for line = 1:10 set(hLine(line),'Color',cmp(line,:)); end set(hLine,'LineWidth',1.5);
The plot (which is just to illustrate what I want) looks as follows:
matlab2tikz, how can I use the data provided in the pastebin link to directly recreate this same plot in pgfplots? Ideally the method should be able to automatically take any number of y-data and set the color of each line appropriately.