Skip to content

Commit 0043400

Browse files
fix issue #319
1 parent 6367443 commit 0043400

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

plotly/plotlyfig_aux/handlegraphics/updateLineseries.m

+8-6
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,13 @@ function updateLineseries(obj,plotIndex)
7575
end
7676

7777
%-if ezpolar or not-%
78-
if length(obj.State.Axis(plotIndex).Handle.Children) == 2
79-
ispolar = true;
78+
len = length(obj.State.Axis.Handle.Children);
79+
if len > 1
80+
for l = 1:len
81+
if strcmpi(obj.State.Axis.Handle.Children(l).Type, 'Text')
82+
ispolar = true;
83+
end
84+
end
8085
end
8186

8287
%-------------------------------------------------------------------------%
@@ -184,7 +189,4 @@ function updateLineseries(obj,plotIndex)
184189

185190
%-------------------------------------------------------------------------%
186191

187-
end
188-
189-
190-
192+
end

0 commit comments

Comments
 (0)