File: plotlib.start

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 (59 lines) | stat: -rw-r--r-- 1,538 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// ====================================================================
// Copyright (C) Stphane Mottelet
// 
// This file must be used under the terms of the GNU GPL License
// ====================================================================

warning_mode = warning('query');
warning('off');

etc_tlbx = get_absolute_file_path('plotlib.start');
etc_tlbx = getshortpathname(etc_tlbx);

root_tlbx = strncpy( etc_tlbx, length(etc_tlbx)-length('\etc\') );

pathmacros = pathconvert( root_tlbx ) + 'macros'+ filesep();

version=mgetl(pathmacros+'VERSION');

mprintf('Start plotlib toolbox '+version(1)+'\n');
mprintf('Load macros\n');

//Load  functions library

plotlib_toolboxlib = lib(pathmacros);

clearfun('rotate_axes');

mprintf('Load help\n');

//add help chapter
path_addchapter = root_tlbx + "/jar/";
if ( fileinfo(path_addchapter) <> [] ) then
  add_help_chapter('Matlab-like plotting library', path_addchapter, %F);
  clear add_help_chapter;
end
// ====================================================================
// add demos
pathdemos = pathconvert(root_tlbx+"/demos/plotlib.dem.gateway.sce",%f,%t);
add_demo("Matlab-like plotting library",pathdemos);

global PLOTLIB

PLOTLIB=pathmacros;

clear pathdemos ;
// ====================================================================
clear warning_mode;
clear path_addchapter;
clear root_tlbx;
clear etc_tlbx;
clear pathmacros;
clear pathconvert;
clear version;
// ====================================================================

// Plotlib initialisation

graphinit