How can I recreate the plot in the picture? I just want to understand how to add multiple axes and how to scale every axis to different values.
I have created this:
clear load carbig.matcolors = [[0 0 0]; [0 0 0]; [1 0 0]; [0 1 0]; [1 0.5 0]; [1 0 1]; [0 0 0]; [0 0 1]];data = [MPG Horsepower Weight Acceleration Displacement Cylinders*500];labels = {'MPG', 'Horsepower', 'Weight', 'Acceleration', 'Displacement', 'Cylinders'};lineobjects = parallelcoords(data, 'Labels',labels)for i=1:length(lineobjects) lineobjects(i).Color = colors((lineobjects(i).YData(6)/500),:) %lineobjects(i).Color(4) = .15;
end
Best Answer