S.Rodriguez
S.Rodriguez

Reputation: 33

GNUPlot Does not show anything In Mac Terminal

I use the terminal in my MacBook. I used homebrew to install gnuplot

brew install gnuplot --with-x11

When I type

gnuplot> "#myfile"

I go to the gnuplot gui but I cannot see any of the words that I type. Does any one know what I nedd to do in order to see the text?

Upvotes: 0

Views: 394

Answers (1)

Vinicius Placco
Vinicius Placco

Reputation: 1731

My guess is that you're redirecting all the standard input to "myfile" using the ">", so that is why you don't see on the screen. A quick fix would be using tee:

$ gnuplot | tee myfile

I made a test on my MacBook and it worked. However, is there a reason why you want to record what you're typing on the fly? I would suggest opening a file, type your gnuplot commands, then on your terminal:

$ gnuplot plot_commands.gp

Hope it helps!

Upvotes: 1

Related Questions