Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #2270 > unrolled thread
| Started by | hschaefer1027@gmail.com |
|---|---|
| First post | 2014-01-27 13:54 -0800 |
| Last post | 2014-01-27 14:47 -0800 |
| Articles | 2 — 1 participant |
Back to article view | Back to comp.graphics.apps.gnuplot
syntax error with histogram script hschaefer1027@gmail.com - 2014-01-27 13:54 -0800
Re: syntax error with histogram script hschaefer1027@gmail.com - 2014-01-27 14:47 -0800
| From | hschaefer1027@gmail.com |
|---|---|
| Date | 2014-01-27 13:54 -0800 |
| Subject | syntax error with histogram script |
| Message-ID | <9e8fac41-3178-4963-8fed-1759fc586e80@googlegroups.com> |
I started using gnuplot today and I got several of the histogram samples on the
http://gnuplot.sourceforge.net/demo_4.6/histograms.html
website to work, until I got to this one:
http://gnuplot.sourceforge.net/demo_4.6/histograms.4.gnu
When I try to run it, I get this error:
./test.gnu: line 19: syntax error near unexpected token `('
./test.gnu: line 19: `plot 'immigration.dat' using 2:xtic(1), for [i=3:22] '' using i'
I copied it word for word, and I know the immigration.dat file is good because I used for some other samples.
Any ideas? I'm wondering if either the sample script has a typo or maybe I'm using the wrong shell. I'm using bash.
Thanks!,
Harry
[toc] | [next] | [standalone]
| From | hschaefer1027@gmail.com |
|---|---|
| Date | 2014-01-27 14:47 -0800 |
| Message-ID | <01f94ea9-4211-4ca8-878e-3c6bc61774d9@googlegroups.com> |
| In reply to | #2270 |
Nevermind - I was running a default centos version which is way old, so I downloaded & compiled 4.6 p4 and it works fine now!
On Monday, January 27, 2014 4:54:08 PM UTC-5, hschae...@gmail.com wrote:
> I started using gnuplot today and I got several of the histogram samples on the
>
>
>
> http://gnuplot.sourceforge.net/demo_4.6/histograms.html
>
>
>
> website to work, until I got to this one:
>
>
>
> http://gnuplot.sourceforge.net/demo_4.6/histograms.4.gnu
>
>
>
> When I try to run it, I get this error:
>
>
>
> ./test.gnu: line 19: syntax error near unexpected token `('
>
> ./test.gnu: line 19: `plot 'immigration.dat' using 2:xtic(1), for [i=3:22] '' using i'
>
>
>
> I copied it word for word, and I know the immigration.dat file is good because I used for some other samples.
>
>
>
> Any ideas? I'm wondering if either the sample script has a typo or maybe I'm using the wrong shell. I'm using bash.
>
>
>
> Thanks!,
>
> Harry
[toc] | [prev] | [standalone]
Back to top | Article view | comp.graphics.apps.gnuplot
csiph-web