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

Skip to content

Commit 2af77e5

Browse files
fix issue #311
1 parent d4cec75 commit 2af77e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plotly/plotlyfig_aux/handlegraphics/updatePatch.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
%---------------------------------------------------------------------%
136136

137137
%-patch name-%
138-
if ~isempty(patch_data.DisplayName);
138+
if ~isempty(patch_data.DisplayName)
139139
obj.data{patchIndex}.name = patch_data.DisplayName;
140140
else
141141
obj.data{patchIndex}.name = patch_data.DisplayName;
@@ -179,7 +179,7 @@
179179
%-patch fillcolor-%
180180
fill = extractPatchFace(patch_data);
181181

182-
if strcmp(obj.data{patchIndex}.type,'scatter');
182+
if strcmp(obj.data{patchIndex}.type,'scatter')
183183
obj.data{patchIndex}.fillcolor = fill.color;
184184
else
185185
obj.data{patchIndex}.surfacecolor = fill.color;
@@ -188,7 +188,7 @@
188188
%---------------------------------------------------------------------%
189189

190190
%-surfaceaxis-%
191-
if strcmp(obj.data{patchIndex}.type,'scatter3d');
191+
if strcmp(obj.data{patchIndex}.type,'scatter3d')
192192
minstd = min([std(patch_data.XData) std(patch_data.YData) std(patch_data.ZData)]);
193193
ind = find([std(patch_data.XData) std(patch_data.YData) std(patch_data.ZData)] == minstd)-1;
194194
obj.data{patchIndex}.surfaceaxis = ind;

0 commit comments

Comments
 (0)