File tree Expand file tree Collapse file tree 2 files changed +12
-16
lines changed Expand file tree Collapse file tree 2 files changed +12
-16
lines changed Original file line number Diff line number Diff line change 26
26
return
27
27
end
28
28
29
+ % plotly toolbox directory
30
+ plotlyToolboxDir = fullfile(matlabroot ,' toolbox' ,' plotly' );
31
+
29
32
% find the location of all plotly/ directories
30
33
dircount = 1 ;
31
34
for d = 1 : length(plotlyScriptDirs )
32
35
% parse filepath string at the Plotly directory
33
36
plotlyLoc = strfind(fileparts(plotlyScriptDirs{d }),fullfile(' MATLAB-api' ,' plotly' ));
37
+ plotlyToolboxLoc = strfind(fileparts(plotlyScriptDirs{d }),plotlyToolboxDir );
34
38
if ~isempty(plotlyLoc )
35
39
plotlyDirs{dircount } = fullfile(plotlyScriptDirs{d }(1 : plotlyLoc - 1 ),' MATLAB-api' ,' plotly' );
40
+ elseif ~isempty(plotlyToolboxLoc )
41
+ plotlyDirs{dircount } = plotlyToolboxDir ;
36
42
end
37
43
dircount = dircount + 1 ;
38
44
end
39
45
40
- % plotly toolbox directory
41
- plotlyToolboxDir = fullfile(matlabroot ,' toolbox' ,' plotly' );
42
-
43
- % MATLAB toolbox plotly
44
- if exist(plotlyToolboxDir , ' dir' );
45
- plotlyDirs{end + 1 } = plotlyToolboxDir ;
46
- end
47
-
48
46
for d = 1 : length(plotlyDirs )
49
47
50
48
% add plotlydirs to searchpath (will be removed in future once handled by plotlyupdate)
Original file line number Diff line number Diff line change @@ -67,25 +67,23 @@ function plotlyupdate(varargin)
67
67
return
68
68
end
69
69
70
+ % plotly toolbox directory
71
+ plotlyToolboxDir = fullfile(matlabroot ,' toolbox' ,' plotly' );
72
+
70
73
% find the location of all plotly/ directories
71
74
dircount = 1 ;
72
75
for d = 1 : length(plotlyScriptDirs )
73
76
% parse filepath string at the Plotly directory
74
77
plotlyLoc = strfind(fileparts(plotlyScriptDirs{d }),fullfile(' MATLAB-api' ,' plotly' ));
78
+ plotlyToolboxLoc = strfind(fileparts(plotlyScriptDirs{d }),plotlyToolboxDir );
75
79
if ~isempty(plotlyLoc )
76
80
plotlyDirs{dircount } = fullfile(plotlyScriptDirs{d }(1 : plotlyLoc - 1 ),' MATLAB-api' ,' plotly' );
81
+ elseif ~isempty(plotlyToolboxLoc )
82
+ plotlyDirs{dircount } = plotlyToolboxDir ;
77
83
end
78
84
dircount = dircount + 1 ;
79
85
end
80
86
81
- % plotly toolbox directory
82
- plotlyToolboxDir = fullfile(matlabroot ,' toolbox' ,' plotly' );
83
-
84
- % MATLAB toolbox plotly
85
- if exist(plotlyToolboxDir , ' dir' );
86
- plotlyDirs{end + 1 } = plotlyToolboxDir ;
87
- end
88
-
89
87
% ----update if necessary----%
90
88
if strcmp(pvLocal ,pvRemote )
91
89
fprintf([' \n Your Plotly API MATLAB Library v.' pvRemote ' is already up to date! \n\n ' ])
You can’t perform that action at this time.
0 commit comments