1 %% Copyright (c) 2011 Juan Pablo Carbajal <carbajal@ifi.uzh.ch>
3 %% This program is free software: you can redistribute it and/or modify
4 %% it under the terms of the GNU General Public License as published by
5 %% the Free Software Foundation, either version 3 of the License, or
8 %% This program is distributed in the hope that it will be useful,
9 %% but WITHOUT ANY WARRANTY; without even the implied warranty of
10 %% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 %% GNU General Public License for more details.
13 %% You should have received a copy of the GNU General Public License
14 %% along with this program. If not, see <http://www.gnu.org/licenses/>.
16 function data = loadsvgdata (obj, svg, varargin)
18 here = which ("@svg/loadsvgdata");
19 here = fileparts (here);
20 script = fullfile (here, 'parseSVGData.py');
25 [st str]=system (sprintf ('python %s %s', script, svg));
29 [st str]=system (sprintf ('python %s < %s', script, svg));
33 strdata = strsplit (str(1:end-1), '$', true);