On 30 Jul., 12:05, marius_darie <dariemar...@gmail.com> wrote: > Im using sagenb. > how can I load data (from my computer) for 2d ploting? >
1. menu: data > upload or create > selected file "data.csv" containing in my case: """ 1,3 2,3 3,4 """ 2. read it: import csv data = list(csv.reader(file(DATA + 'data.csv'))) print data [['1', '3'], ['2', '3'], ['3', '4']] 3. do something with it: list_plot(data) Note, that all elements in the list are of type 'str', but list_plot is intelligent enough to parse them to numbers. In your case, you maybe have to convert them via float: type(float(data[0][0])) -> <type 'float'> H -- You received this message because you are subscribed to the Google Groups "sage-edu" group. To post to this group, send email to sage-...@googlegroups.com. To unsubscribe from this group, send email to sage-edu+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-edu?hl=en.