[Solved] Plotting a text file by using gnuplot

the bare minimum required to plot that data is to have a program file that looks like this: set title “SAMPLE” set terminal canvas plot [-19:19] ‘data.dat’ Setting the terminal to canvas means it will output an html canvas, if you want any different output you need to look into the documentation then in the … Read more

[Solved] Gnuplot vector fortran

First of all, you are making a data file plotdata.txt at the beginning of the program, while trying to plot file.dat later, so that Gnuplot cannot find the latter. After fixing this, you can attach -persist option to keep the graph on the screen as call execute_command_line(“gnuplot -persist plotvel.txt”) Otherwise the graph disappears instantly and … Read more