-1
~/project$ plot 'dis_xsq_out.dat' u 1:2:3

Command 'plot' not found, but can be installed with:

sudo apt install plotutils
Byte Commander
  • 107,489
  • 2
    Did you install plot .. or plotutils as described ? – Soren A Feb 12 '19 at 11:47
  • $ sudo apt install -o Acquire::http::proxy=false plotutils E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?shwoing error while installing plot or plotutils – ASHWINI GORE Feb 12 '19 at 12:02

1 Answers1

2

You appear to be trying to run a Gnuplot plot command directly from the terminal shell. Instead, you need to run it from Gnuplot's own interactive shell:

$ gnuplot

    G N U P L O T
    Version 5.2 patchlevel 2    last modified 2017-11-01 

    Copyright (C) 1986-1993, 1998, 2004, 2007-2017
    Thomas Williams, Colin Kelley and many others

    gnuplot home:     http://www.gnuplot.info
    faq, bugs, etc:   type "help FAQ"
    immediate help:   type "help"  (plot window: hit 'h')

Terminal type is now 'wxt'
gnuplot> 
gnuplot> plot 'dis_xsq_out.dat' u 1:2:3

Alternatively, you can run it as a shell one-liner:

gnuplot -p -e 'plot "dis_xsq_out.dat" u 1:2:3'
steeldriver
  • 136,215
  • 21
  • 243
  • 336