4

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.

2 Answers 2

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.

2
  • 1
    i still don't get a graph window show up Aug 3, 2014 at 10:41
  • @computerSPro : show the content of the file
    – Adam
    Oct 10, 2020 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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .