File: _axes.sci

package info (click to toggle)
scilab-plotlib 0.41-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,196 kB
  • sloc: xml: 3,308; makefile: 15
file content (35 lines) | stat: -rw-r--r-- 702 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
function varargout=_axes(varargin)

global defaultFigureUserData defaultAxesUserData

[lhs,rhs]=argn();

_start=1;
if length(varargin)
   if typeof(varargin(_start))=="pltlibH"
     if varargin(_start).handle.type=="Axes"
       h=varargin(_start).handle
     else
      _error("axes : handle should be an axes handle")
     end
     sca(h);
     varargout(1)=[];
     return;
   end     
end

win=get('current_figure');

IMD=win.immediate_drawing;
win.immediate_drawing="off";

ax=newaxes();

[_axes_ppty_value_list,_next]=_parse_axes_ppty_value("axes",varargin,_start);
_update_axes(ax,_axes_ppty_value_list,%t);

varargout(1)=mlist(['pltlibH','handle'],ax);

win.immediate_drawing=IMD;

endfunction