~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to demos/anim/anim1.dem

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Copyright INRIA
2
 
mode(1)
3
 
kp=xget("pixmap");xset("pixmap",1);
4
 
xset("wwpc");  // clean pixmap
5
 
t=%pi*(-5:5)/5;
6
 
//first plot, to fix boundaries
7
 
plot3d1(t,t,sin(t)'*cos(t),35,45," ",[1,2,4]);
8
 
xset("wshow"); // show pixmap
9
 
 
10
 
if driver()=='Pos' then st=4;else st=2;end;
11
 
for i=35:st:80, // loop on theta angle
12
 
  xset("wwpc");
13
 
  plot3d1(t,t,sin(t)'*cos(t),i,45," ",[1,0,4])
14
 
  xset("wshow");
15
 
end
16
 
for i=45:st:80, //loop on alpha angle
17
 
  xset("wwpc");
18
 
  plot3d1(t,t,sin(t)'*cos(t),80,i," ",[1,0,4])
19
 
  xset("wshow");
20
 
end
21
 
 
22
 
xset("pixmap",kp);
23
 
 
24
 
 
25