I have a file with .gnu extension.It contains gnuplot commands. I want to show up the graph, using gnuplot. So, which command is right for this.
Asked
Active
Viewed 1.5k times
2 Answers
4
You can run gnuplot directly with
gnuplot
The environment opens in the console and you can add your commands after gnuplot>
load 'file.gnu'
If you're not in the same directory, you have to go there before or specify the path for the file.
You can have a look at this tutorial and here are some examples.
SLx64
- 294
- 1
- 2
- 9
-
1i still don't get a graph window show up – computerSPro Aug 03 '14 at 10:41
-
@computerSPro : show the content of the file – Adam Oct 10 '20 at 11:55
2
Starting with a file somefile.gnu
gnuplot -p somefile.gnu > /tmp/sss.pdf
now just view your new pdf file
open /tmp/sss.pdf
Scott Stensland
- 464
- 5
- 14