Skip to content

Commit 59481e8

Browse files
fix issue 286
1 parent 61bf5ae commit 59481e8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

plotly/plotlyfig_aux/handlegraphics/updateImage.m

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@
9494
%-image name-%
9595
try
9696
obj.data{imageIndex}.name = image_data.DisplayName;
97+
catch
98+
obj.data{imageIndex}.name = '';
9799
end
98100

99101
%-------------------------------------------------------------------------%
@@ -119,8 +121,8 @@
119121
%-------------------------------------------------------------------------%
120122

121123
%-image zmax-%
122-
% axis_data.CLim(2); % comment this as optional
123-
obj.data{imageIndex}.zmax = 255;
124+
axis_data.CLim(2);
125+
% obj.data{imageIndex}.zmax = 255; % comment this as optional
124126

125127
%-------------------------------------------------------------------------%
126128

@@ -150,6 +152,8 @@
150152
end
151153

152154
obj.data{imageIndex}.showlegend = showleg;
155+
catch
156+
%TODO to future
153157
end
154158

155159
%-------------------------------------------------------------------------%

0 commit comments

Comments
 (0)