Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'ListPlot of x and y lists' topicStudent Support Forum > General > Archives > "ListPlot of x and y lists"

Next Comment >Help | Reply To Topic
Author Comment/Response
Jarod
09/24/09 6:20pm

I know this probably an easy question, but it is something I've never been able to get right using Mathematica.

If I have a list of values that I've imported from a CSV file using the Import function, what is the best way to plot these values?

For example, if I put in:

s = Import["filename.csv"];
x = s[[All,1]];
y = s[[All,2]];

Then I can't use ListPlot[x,y] or ListPlot[{x,y}] to plot these two against each other. What is the best way to plot two columns in Mathematica?



URL: ,

Subject (listing for 'ListPlot of x and y lists')
Author Date Posted
ListPlot of x and y lists Jarod 09/24/09 6:20pm
Re: ListPlot of x and y lists yehuda ben-s... 09/29/09 09:16am
Re: ListPlot of x and y lists Bill 09/29/09 09:21am
Next Comment >Help | Reply To Topic