Skip to content

Commit 9bf436e

Browse files
fix issue #302
1 parent ed85871 commit 9bf436e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plotly/plotlyfig_aux/handlegraphics/updateLineseries.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ function updateLineseries(obj,plotIndex)
7474
ispolar = true;
7575
end
7676

77-
%-if polar ezplot or not-%
78-
if abs(x(1)-x(end))<1e-5 && abs(y(1)-y(end))<1e-5
77+
%-if ezpolar or not-%
78+
if length(obj.State.Axis(plotIndex).Handle.Children) == 2
7979
ispolar = true;
8080
end
8181

0 commit comments

Comments
 (0)