Consider we have a table table1
with $n$ columns. I want to ListPlot
two given columns from the table.
For example
table1 = RandomReal[1, {10, 5}]
Consider we have a table table1
with $n$ columns. I want to ListPlot
two given columns from the table.
For example
table1 = RandomReal[1, {10, 5}]
Let's assume this is your data
data = RandomReal[1, {10, 5}]
You may want to plot column $5$ vs $3$.
ListPlot[data[[All, {3, 5}]]]
Or you may want to plot them independently
ListPlot[
Transpose@data[[All, {3, 5}]]
, Joined -> True
]
Or more general, choose any pair, vs or independently, using Manipuate
Manipulate[
ListPlot[
If[vs, Identity, Transpose]@data[[All, {j, k}]]
, Joined -> ! vs
]
, {{j, 2}, Range[5], SetterBar}
, {{k, 4}, Range[5], SetterBar}
, {vs, {True, False}}
]