~ubuntu-branches/ubuntu/intrepid/plplot/intrepid

« back to all changes in this revision

Viewing changes to examples/c++/x15.cc

  • Committer: Bazaar Package Importer
  • Author(s): Rafael Laboissiere
  • Date: 2006-11-04 10:19:34 UTC
  • mfrom: (2.1.8 edgy)
  • Revision ID: james.westby@ubuntu.com-20061104101934-mlirvdg4gpwi6i5q
Tags: 5.6.1-10
* Orphaning the package
* debian/control: Changed the maintainer to the Debian QA Group

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//---------------------------------------------------------------------------//
2
 
// $Id: x15.cc,v 1.6 2004/06/24 08:08:53 andrewross Exp $
 
2
// $Id: x15.cc,v 1.10 2005/12/06 16:36:03 andrewross Exp $
3
3
//---------------------------------------------------------------------------//
4
4
//
5
5
//---------------------------------------------------------------------------//
19
19
//
20
20
// You should have received a copy of the GNU Library General Public License
21
21
// along with PLplot; if not, write to the Free Software
22
 
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
 
22
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
23
23
//---------------------------------------------------------------------------//
24
24
//
25
25
//---------------------------------------------------------------------------//
26
26
// Implementation of PLplot example 15 in C++.
27
27
//---------------------------------------------------------------------------//
28
28
 
29
 
#include "plstream.h"
30
 
 
31
 
#include <iostream>
32
 
#include <cmath>
 
29
#include "plc++demos.h"
33
30
 
34
31
#ifdef USE_NAMESPACE
35
32
using namespace std;
82
79
  pls = new plstream();
83
80
 
84
81
  // Parse and process command line arguments.
85
 
  pls->ParseOpts( &argc, argv, PL_PARSE_FULL );
 
82
  pls->parseopts( &argc, argv, PL_PARSE_FULL );
86
83
 
87
84
  // Initialize PLplot.
88
85
  pls->init();
145
142
               shade_min, shade_max,
146
143
               sh_cmap, sh_color, sh_width,
147
144
               min_color, min_width, max_color, max_width,
148
 
               plstream::fill, 1, NULL, NULL );
 
145
               plstream::fill, true, NULL, NULL );
149
146
 
150
147
  pls->col0(1);
151
148
  pls->box("bcnst", 0.0, 0, "bcnstv", 0.0, 0);
180
177
                 shade_min, shade_max,
181
178
                 sh_cmap, sh_color, sh_width,
182
179
                 min_color, min_width, max_color, max_width,
183
 
                 plstream::fill, 1, NULL, NULL );
 
180
                 plstream::fill, true, NULL, NULL );
184
181
  }
185
182
 
186
183
  pls->col0(1);