I have two data lists with names data1 and data2. data1 has 8 columns and data2 has two columns. How can I plot 3rd column of data1 verses 1st column of data2?


one way.

data1 = RandomReal[1, {10, 8}];
data2 = RandomReal[1, {10, 2}];
x = data2[[All, 1]];
y = data1[[All, 3]];
(data = Transpose[{x, y}]) // MatrixForm

Mathematica graphics

ListPlot[data, PlotStyle -> Directive[Red, PointSize[Large]], 
  Frame -> True, FrameLabel -> {{"y(x)", None}, {"x", "my nice plot"}}, 
   GridLines -> Automatic, GridLinesStyle -> LightGray]

Mathematica graphics


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.