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

« back to all changes in this revision

Viewing changes to macros/m2sci/sci_figure.sci

  • 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
 
function [stk,txt,top]=sci_figure()
2
 
// Copyright INRIA
3
 
if rhs==1 then
4
 
  win=stk(top)(1)
5
 
  txt='xset(''window'','+win+')'
6
 
  if and(lst(ilst+1)==['1' 'ans']) then
7
 
    stk=list(' ','-1','0','0','0')
8
 
  else
9
 
    stk=stk(top)
10
 
  end
11
 
else //figure without argument
12
 
  win='max(winsid()+1)'
13
 
  txt='xset(''window'','+win+')'
14
 
  if and(lst(ilst+1)==['1' 'ans']) then
15
 
    stk=list(' ','-1','0','0','0')
16
 
  else
17
 
    top=top+1
18
 
    stk=list('max(winsid())','0','1','1','1')
19
 
  end
20
 
end
21
 
 
22
 
 
23
 
 
24
 
 
25