A very simple question. I have a data table with three columns. how can i plot column 1 vs column 3 using ListPlot?
thx in advance
|
A very simple question. I have a data table with three columns. how can i plot column 1 vs column 3 using ListPlot? thx in advance |
|||
| show 1 more comment |
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.
|
The usual way to convert two sets of coordinates into one set of coordinate pairs in Mathematica is to use
This might not feel intuitive if you are new to Mathematica. For your data you could use either
or
|
|||
|
|
|
The meaning of "vs" in your question has two possible interpretations:
Or:
|
|||||
|
|
Transpose. – Andy Ross Jan 22 at 13:45{t[[1]], t[[3]]}to take the first and third element. From this (see @AndyRoss), you'll need to make the pairs (x,y) to be plotted. – b.gatessucks Jan 22 at 13:46