Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 77b0a8b

Browse files
fix issue in plotlyfig.m when using plotly function
1 parent 02a7474 commit 77b0a8b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

plotly/plotlyfig.m

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,11 @@ function validate(obj)
390390

391391
% validate data fields
392392
for d = 1:length(obj.data)
393-
obj.stripkeys(obj.data{d}, obj.data{d}.type, {'style','plot_info'});
393+
try
394+
obj.stripkeys(obj.data{d}, obj.data{d}.type, {'style','plot_info'});
395+
catch
396+
% TODO
397+
end
394398
end
395399

396400
% validate layout fields
@@ -1068,7 +1072,7 @@ function delete(obj)
10681072
methods (Access=private)
10691073
%----STRIP THE FIELDS OF A SPECIFIED KEY-----%
10701074
function stripped = stripkeys(obj, fields, fieldname, key)
1071-
1075+
10721076
%plorlt reference
10731077
pr = obj.PlotlyReference;
10741078

0 commit comments

Comments
 (0)