File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
plotly/plotlyfig_aux/handlegraphics Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 11dev /
2- * .asv
2+ * .asv
3+ untitled.html
Original file line number Diff line number Diff 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+ obj.data{areaIndex }.x = area_data .XData ;
104103
105104% -------------------------------------------------------------------------%
106105
107106% -area y-%
108- ydata = area_child .VertexData(2 ,: );
109- obj.data{areaIndex }.y = [ydata ydata(1 )];
107+ if areaIndex > 1
108+ obj.data{areaIndex }.y = obj.data{areaIndex - 1 }.y + area_data .YData ;
109+ else
110+ obj.data{areaIndex }.y = area_data .YData ;
111+ end
110112
111113% -------------------------------------------------------------------------%
112114
@@ -125,7 +127,7 @@ function updateArea(obj,areaIndex)
125127% -------------------------------------------------------------------------%
126128
127129% -area fill-%
128- obj.data{areaIndex }.fill = ' tozeroy ' ;
130+ obj.data{areaIndex }.fill = ' tonexty ' ;
129131
130132% -------------------------------------------------------------------------%
131133
You can’t perform that action at this time.
0 commit comments