How to plot a graph using linux?

I want to build a data file ( speed11.data

) in Linux. the data file looks like this:

1,4.45823517e+01
2,4.45873528e+01
3,4.45923538e+01
4,4.45973549e+01

      

I used gnuplot, but I got an error.

 gnuplot> plot "speed11.data"


gnuplot> 1,4.45823517e+01
         ^
         "speed11.data", line 1: invalid command

      

How to build a graph?

Conclusion locale

:

LANG=en_CA.UTF-8
LC_CTYPE="en_CA.UTF-8"
LC_NUMERIC="en_CA.UTF-8"
LC_TIME="en_CA.UTF-8"
LC_COLLATE="en_CA.UTF-8"
LC_MONETARY="en_CA.UTF-8"
LC_MESSAGES="en_CA.UTF-8"
LC_PAPER="en_CA.UTF-8"
LC_NAME="en_CA.UTF-8"
LC_ADDRESS="en_CA.UTF-8"
LC_TELEPHONE="en_CA.UTF-8"
LC_MEASUREMENT="en_CA.UTF-8"
LC_IDENTIFICATION="en_CA.UTF-8"
LC_ALL=

      

+3


source to share


1 answer


For gnuplot, you can have a look at this post which is about using comma separated values ​​(CSV) in gnuplot.



Alternatively, you may need to use R instead of gnuplot. R has the ability to import csv data files and is capable of doing some complex plots.

+1


source







All Articles