ubuntu - bad interpreter shell script

  • wookie1

    Hi I'm trying to write a shell script for plotting with gnuplot however I keep running into the error: bash: ./plot.sh: usr/bin/gnuplot: bad interpreter: No such file or directory I have checked the location 'usr/bin/gnuplot' and it definitely exists. I have also checked the permissions on the file and it is executable. I have also checked I can open gnuplot manually through the interpreter and encountered no problems here.

    The following is my file:

    set terminal png
    set output 'test.png'
    set key inside left top vertical Right noreverse enhanced autotitles box linetype -1 linewidth 1.000
    set samples 200, 200
    set title "Arc trig"
    set xlabel "x"
    set ylabel "y"
    set grid
    plot [-3:5] asin(x),acos(x)

    I'm running Ubuntu 12.10.

    Any ideas would be much appreciated. Thanks.

  • Answers
  • ohope5

    Missed the "/" #!/usr/bin/gnuplot

  • Related Question

    how to stack pm3d multiplot in gnuplot?
  • kirill_igum

    Using gnuplot, I would like to stack 5 contour plots together, meaning no white spaces between them. I can't get it to work for some reason. any help is appreciated.

    #! /usr/bin/gnuplot
    set terminal epslatex color size 7in,2in 
    set output "s.pdf"
    set multiplot layout 1,5
    set lmargin 0
    set bmargin 0
    set tmargin 0
    set rmargin 0
    set size square
    set pm3d map
    unset colorbox 
    unset key
    set format x "";
    set format y "";
    set xlabel "";
    set ylabel "";
    splot x*x+y*y 
    splot x*x+y*y
    splot x*x+y*y
    splot x*x+y*y
    splot x*x+y*y
    unset multiplot

    is there a way to do it without adjusting a position of each plot? it works for normal plots like here http://gibuu.physik.uni-giessen.de/GiBUU/wiki/HowToGnuplotStacked but not for pm3d

  • Related Answers
    Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.