Saturday

Linux Mint and gnuplot

Try the following steps:

Click on Linux Mint Start Menu > Terminal

Type the following in the terminal:
$ sudo apt-get install gnuplot
$ cd /home/myusername/Desktop/

Create a file named “tsp4.tsp” and then copy the following text into the file. Put this file at “/home/myusername/Desktop/” directory.
# start line
10 10
10 110
110 110
110 10
10 10
110 110
110 10
10 110
# end line

$ pwd
/home/myusername/Desktop

$ gnuplot
> plot “tsp4.tsp” with linespoints
> quit

$ exit

No comments:

Measure execution time with Julia, example using sorting algorithms

# random integers between 1 and 100 inclusive, generate thousands of them x = rand ( 1 : 100 , 100000 ) @time sort (x; alg=InsertionSort, r...