LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   General (https://www.linuxquestions.org/questions/general-10/)
-   -   plot error bash under cyguin (https://www.linuxquestions.org/questions/general-10/plot-error-bash-under-cyguin-4175620939/)

ahmad21 01-04-2018 12:22 PM

plot error bash under cyguin
 
i am using cyguin under windows 8, when i tried to run command plot i am getting the following error :

Ahmad Chehade@Laptop /home/AhmadChehade/laplace
$ ls -l
total 1553
-rwxr-xr-x 1 Ahmad Chehade Ahmad Chehade 2832 Jan 4 09:38 lapl1D.dat
-rwxr-xr-x 1 Ahmad Chehade Ahmad Chehade 601086 Jan 2 00:44 lapl1D.exe
-rwxr-xr-x 1 Ahmad Chehade Ahmad Chehade 2473 Oct 5 2011 main.cpp
-rw-r--r-- 1 Ahmad Chehade Ahmad Chehade 726994 Jan 2 00:44 main.o
-rwxr-xr-x 1 Ahmad Chehade Ahmad Chehade 517 Jan 2 00:15 makefile
-rwxr-xr-x 1 Ahmad Chehade Ahmad Chehade 1761 Oct 5 2011 Poisson1D.cpp
-rw-r--r-- 1 Ahmad Chehade Ahmad Chehade 92950 Jan 2 00:44 Poisson1D.o
-rwxr-xr-x 1 Ahmad Chehade Ahmad Chehade 4439 Dec 28 12:37 poisson2D.cpp
-rw-r--r-- 1 Ahmad Chehade Ahmad Chehade 27596 Jan 2 00:53 testout1
-rw-r--r-- 1 Ahmad Chehade Ahmad Chehade 22783 Jan 2 00:53 testoutgif
-rwxr-xr-x 1 Ahmad Chehade Ahmad Chehade 1078 Oct 5 2011 Tridiagonal.cpp
-rw-r--r-- 1 Ahmad Chehade Ahmad Chehade 84186 Jan 2 00:44 Tridiagonal.o

Ahmad Chehade@Laptop /home/AhmadChehade/laplace
$ ./ lapl1D.exe
-bash: ./: Is a directory

Ahmad Chehade@Laptop /home/AhmadChehade/laplace
$ ./lapl1D.exe
Root-mean-square error:
2nd order approximation: 0.000791856

Creation du fichier 'lapl1D.dat' pour stocker la solution calculee ainsi que la solution exacte.

***
Pour visualiser la solution exacte et la solution que vous venez de calculer, utilisez la ligne de commande suivante sous 'gnuplot' :
plot 'lapl1D.dat' using 1:2 title 'Ucal','lapl1D.dat' using 1:3 with lines title 'Uex'
***

Ahmad Chehade@Laptop /home/AhmadChehade/laplace
$ plot 'lapl1D.dat' using 1:2 title 'Ucal','lapl1D.dat' using 1:3 with lines title 'Uex'
-bash: plot: command not found

Ahmad Chehade@Laptop /home/AhmadChehade/laplace
$

any suggesi appreciate it

TB0ne 01-04-2018 12:58 PM

Quote:

Originally Posted by ahmad21 (Post 5801868)
i am using cyguin under windows 8, when i tried to run command plot i am getting the following error :

Ahmad Chehade@Laptop /home/AhmadChehade/laplace
$ ls -l
total 1553
-rwxr-xr-x 1 Ahmad Chehade Ahmad Chehade 2832 Jan 4 09:38 lapl1D.dat
-rwxr-xr-x 1 Ahmad Chehade Ahmad Chehade 601086 Jan 2 00:44 lapl1D.exe
-rwxr-xr-x 1 Ahmad Chehade Ahmad Chehade 2473 Oct 5 2011 main.cpp
-rw-r--r-- 1 Ahmad Chehade Ahmad Chehade 726994 Jan 2 00:44 main.o
-rwxr-xr-x 1 Ahmad Chehade Ahmad Chehade 517 Jan 2 00:15 makefile
-rwxr-xr-x 1 Ahmad Chehade Ahmad Chehade 1761 Oct 5 2011 Poisson1D.cpp
-rw-r--r-- 1 Ahmad Chehade Ahmad Chehade 92950 Jan 2 00:44 Poisson1D.o
-rwxr-xr-x 1 Ahmad Chehade Ahmad Chehade 4439 Dec 28 12:37 poisson2D.cpp
-rw-r--r-- 1 Ahmad Chehade Ahmad Chehade 27596 Jan 2 00:53 testout1
-rw-r--r-- 1 Ahmad Chehade Ahmad Chehade 22783 Jan 2 00:53 testoutgif
-rwxr-xr-x 1 Ahmad Chehade Ahmad Chehade 1078 Oct 5 2011 Tridiagonal.cpp
-rw-r--r-- 1 Ahmad Chehade Ahmad Chehade 84186 Jan 2 00:44 Tridiagonal.o

Ahmad Chehade@Laptop /home/AhmadChehade/laplace
$ ./ lapl1D.exe
-bash: ./: Is a directory

Ahmad Chehade@Laptop /home/AhmadChehade/laplace
$ ./lapl1D.exe
Root-mean-square error:
2nd order approximation: 0.000791856

Creation du fichier 'lapl1D.dat' pour stocker la solution calculee ainsi que la solution exacte.

***
Pour visualiser la solution exacte et la solution que vous venez de calculer, utilisez la ligne de commande suivante sous 'gnuplot' :
plot 'lapl1D.dat' using 1:2 title 'Ucal','lapl1D.dat' using 1:3 with lines title 'Uex'
***

Ahmad Chehade@Laptop /home/AhmadChehade/laplace
$ plot 'lapl1D.dat' using 1:2 title 'Ucal','lapl1D.dat' using 1:3 with lines title 'Uex'
-bash: plot: command not found

Ahmad Chehade@Laptop /home/AhmadChehade/laplace

any suggesi appreciate it

Read the LQ Rules and the "Question Guidelines" link in my posting signature. Content here needs to be posted in English, and pretty much all of your post is not. Also, be aware the cygwin is *NOT* Linux, so posting questions for cygwin and some other plot-program on a Linux forum may not get you much (if ANY) assistance.

Please translate your post into English, and provide complete details about the program, where you got it, etc., and perhaps someone could help, although you would get a faster response on a cygwin forum.

Mara 01-04-2018 01:22 PM

Moved: This thread is more suitable in a non-Linux forum like General and has been moved accordingly to help your thread/question get the exposure it deserves.

Well.. The output your program gives looks like gnuplot command. However, if we don't have the program we can't tell for sure.

If it's so: run gnuplot using 'gnuplot' command. You should get a command prompt. Then copy the command the program has given you (the 'plot...').

BTW to have your program output in English instead of in your language (French in this case) run it with LANG=C, for example:
$ LANG=C ./lapl1D.exe


All times are GMT -5. The time now is 06:03 PM.