Results 1 to 1 of 1
first off:
im using ubuntu 8.04
I am attempting to make a file executable in conjunction with gnuplot
i tried the command
chmod a+x earthplot
where earthplot is the script.
...
- 05-31-2008 #1Just Joined!
- Join Date
- May 2008
- Posts
- 1
[SOLVED] Executable Files
first off:
im using ubuntu 8.04
I am attempting to make a file executable in conjunction with gnuplot
i tried the command
chmod a+x earthplot
where earthplot is the script.
i am now trying to use this file with gnuplot and gnuplot is having none of it
here is the script::
#!/usr/bin/gnuplot -persist # may not work on every OS
# Plot trajectories from standard input, adding Earth for comparison.
# For operating systems that support it, simply make this file
# executable and substitute earthplot for gpl when making plots:
#
# program | earthplot
#
# You should replace "/usr/local/bin/gnuplot" above by the location of
# gnuplot in your system, as determined by (e.g.) 'which gnuplot'.
#
# If this is not supported, just run gnuplot with earthplot as an
# argument:
#
# program | gnuplot earthplot
set tmargin 2
set bmargin 4
set lmargin 10
set rmargin 9
set xlabel ""
set ylabel ""
set title ""
set nokey
set size square
set style function filledcurves closed
set parametric
set xrange [-2e7 : 2e7]
set yrange [-2e7 : 2e7]
set trange [0:2*pi]
# The following plot command takes its input from the input stream (pipe).
plot 6.4e6*cos(t), 6.4e6*sin(t) lt 5 with filledcurves, \
6.4e6*cos(t), 6.4e6*sin(t) lt 3 with lines, \
'<cat' using 1:2 title "" with lines lt 1
:::
i tried using the instructions in the script to no avail.
any ideas? much thanks.
p.s. im fairly new to linux and i love it


