Skip to content

Commit 4f9905d

Browse files
fix issue #225
1 parent 07f872b commit 4f9905d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

plotly/plotlyfig_aux/handlegraphics/updateArea.m

+6-4
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,16 @@ function updateArea(obj,areaIndex)
9999
%-------------------------------------------------------------------------%
100100

101101
%-area x-%
102-
xdata = area_child.VertexData(1,:);
103-
obj.data{areaIndex}.x = [xdata xdata(1)];
102+
% xdata = area_child.VertexData(1,:); % left commented it to futures problems
103+
% obj.data{areaIndex}.x = [xdata xdata(1)];
104+
obj.data{areaIndex}.x = area_data.XData;
104105

105106
%-------------------------------------------------------------------------%
106107

107108
%-area y-%
108-
ydata = area_child.VertexData(2,:);
109-
obj.data{areaIndex}.y = [ydata ydata(1)];
109+
% ydata = area_child.VertexData(2,:); % left commented it to futures problems
110+
% obj.data{areaIndex}.y = [ydata ydata(1)];
111+
obj.data{areaIndex}.y = area_data.YData;
110112

111113
%-------------------------------------------------------------------------%
112114

0 commit comments

Comments
 (0)