On Saturday 31 March 2007 01:58, Bastian M=C3=A4rkisch wrote:
> I just noticed that gnuplot does not have it's own version of the
> famous 99 bottles of beer song (http://99-bottles-of-beer.net/).
A shocking oversight. Why has no one reported this bug before?
=20
> Here I present my version for discussion before I submit it.
gnuplot> load '99bottles.gp'
"99bottles.gp", line 8: undefined variable: bottles
=46ix:
# Create and initialize the bottles counter
=2Dif (!defined(bottles)) bottles =3D max + 1
+if (!exists("bottles")) bottles =3D max + 1
> On the site it is stated that "Your example should demonstrate the
> main advantages and features of the language". I would appreciate
> suggestions to improve the script with respect to this.
Surely gnuplot should produce plotted output!
Here's my go at it. It doesn't quite work for the last 2 conditions,
but maybe it will inspire you to new heights.
=2D-=20
Ethan A Merritt
Biomolecular Structure Center
University of Washington, Seattle 98195-7742
|