File tree 2 files changed +9
-6
lines changed
plotly/plotlyfig_aux/handlegraphics
2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 1
1
dev /
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)
99
99
% -------------------------------------------------------------------------%
100
100
101
101
% -area x-%
102
- xdata = area_child .VertexData(1 ,: );
103
- obj.data{areaIndex }.x = [xdata xdata(1 )];
102
+ obj.data{areaIndex }.x = area_data .XData ;
104
103
105
104
% -------------------------------------------------------------------------%
106
105
107
106
% -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
110
112
111
113
% -------------------------------------------------------------------------%
112
114
@@ -125,7 +127,7 @@ function updateArea(obj,areaIndex)
125
127
% -------------------------------------------------------------------------%
126
128
127
129
% -area fill-%
128
- obj.data{areaIndex }.fill = ' tozeroy ' ;
130
+ obj.data{areaIndex }.fill = ' tonexty ' ;
129
131
130
132
% -------------------------------------------------------------------------%
131
133
You can’t perform that action at this time.
0 commit comments