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

« back to all changes in this revision

Viewing changes to examples/c/x08c.c

  • 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
 
/* $Id: x08c.c,v 1.43 2004/06/14 21:51:54 rlaboiss Exp $
 
1
/* $Id: x08c.c,v 1.48 2005/10/07 17:53:37 airwin Exp $
2
2
 
3
3
        3-d plot demo.
4
4
 
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
*/
126
126
 
127
127
  /* Parse and process command line arguments */
128
128
  plMergeOpts(options, "x08c options",  NULL);
129
 
  (void) plParseOpts(&argc, argv, PL_PARSE_FULL);
 
129
  (void) plparseopts(&argc, argv, PL_PARSE_FULL);
130
130
  if (sombrero)
131
131
    rosen=0;
132
132
 
167
167
      }
168
168
      else {
169
169
        r = sqrt(xx * xx + yy * yy);
170
 
        z[i][j] = exp(-r * r) * cos(2.0 * PI * r);
 
170
        z[i][j] = exp(-r * r) * cos(2.0 * M_PI * r);
171
171
      }
172
172
    }
173
173
  }
204
204
        cmap1_init(0);
205
205
        plsurf3d(x, y, z, XPTS, YPTS, MAG_COLOR, NULL, 0);
206
206
      } else if (ifshade == 2) { /*  magnitude colored plot with faceted squares */
 
207
        cmap1_init(0);
207
208
        plsurf3d(x, y, z, XPTS, YPTS, MAG_COLOR | FACETED, NULL, 0);
208
 
      } else                     /* magnitude colored plot with contours */
 
209
      } else {                    /* magnitude colored plot with contours */
 
210
        cmap1_init(0);
209
211
        plsurf3d(x, y, z, XPTS, YPTS, MAG_COLOR | SURF_CONT | BASE_CONT, clevel, nlevel);
 
212
      }
210
213
    }
211
214
  }
212
215