1## Copyright (C) 1998, 1999, 2000 Joao Cardoso.
2##
3## This program is free software; you can redistribute it and/or modify it
4## under the terms of the GNU General Public License as published by the
5## Free Software Foundation; either version 2 of the License, or (at your
6## option) any later version.
7##
8## This program is distributed in the hope that it will be useful, but
9## WITHOUT ANY WARRANTY; without even the implied warranty of
10## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11## General Public License for more details.
12##
13## This file is part of plplot_octave.
14
15printf("\n\n\
16This demo runs script files x01c.m to x19c.m, which are the octave\n\
17versions of the equivalent C files.\n\
18The Octave version is an almost direct copy of the C sources,\n\
19 and only in a few cases the code is vectorized.\n\n\
20To advance from one plot to the next, hit the Enter key or\n\
21press the right mouse button. If you endup with an undesired\n\
22plot window, type at the Octave prompt \"plend1\".\n\n\
23Some demos print instructions, so keep this window visible.\n\n\
24Press any key to continue...\n");
25
26fflush(stdout);
27kbhit;
28
29plplot_stub;
30
31for i=[1:30];
32  ## To set defaults, use plSetOpt, as used in the command line, e.g.
33  ## plSetOpt("dev", "png");
34  ## plSetOpt("o", "foo.ps");
35  ## plSetOpt("fam", "1");
36
37  plSetOpt("dev", "xwin");
38
39  cmd = sprintf("x%.2dc",i);
40  printf("Demo %s\n", cmd);
41  fflush(stdout);
42  eval(cmd);
43endfor
44
45