Skip to content

Commit 1ca49fd

Browse files
Refactor updateStackedplot
1 parent 8662d33 commit 1ca49fd

File tree

2 files changed

+131
-140
lines changed

2 files changed

+131
-140
lines changed

plotly/Test_plotlyfig.m

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,14 +1256,14 @@ function testStackedPlotData(tc)
12561256

12571257
tc.verifyNumElements(p.data, 3);
12581258
tc.verifyEqual(p.data{1}, struct( ...
1259-
"type", 'scatter', ...
1259+
"type", "scatter", ...
12601260
"visible", true, ...
12611261
"name", 'date', ...
1262-
"xaxis", 'x1', ...
1263-
"yaxis", 'y1', ...
1262+
"xaxis", "x1", ...
1263+
"yaxis", "y1", ...
12641264
"x", x, ...
12651265
"y", b', ...
1266-
"mode", 'lines', ...
1266+
"mode", "lines", ...
12671267
"line", struct( ...
12681268
"color", "rgb(0,114,189)", ...
12691269
"width", 0.5, ...
@@ -1272,29 +1272,29 @@ function testStackedPlotData(tc)
12721272
"showlegend", false ...
12731273
));
12741274
tc.verifyEqual(p.data{2}, struct( ...
1275-
"type", 'scatter', ...
1275+
"type", "scatter", ...
12761276
"visible", true, ...
12771277
"name", 'a', ...
1278-
"xaxis", 'x1', ...
1279-
"yaxis", 'y2', ...
1278+
"xaxis", "x1", ...
1279+
"yaxis", "y2", ...
12801280
"x", x, ...
12811281
"y", a', ...
1282-
"mode", 'lines', ...
1282+
"mode", "lines", ...
12831283
"line", struct( ...
12841284
"color", "rgb(0,114,189)", ...
12851285
"width", 0.5, ...
12861286
"dash", 'solid' ...
12871287
) ...
12881288
));
12891289
tc.verifyEqual(p.data{3}, struct( ...
1290-
"type", 'scatter', ...
1290+
"type", "scatter", ...
12911291
"visible", true, ...
12921292
"name", 'b', ...
1293-
"xaxis", 'x1', ...
1294-
"yaxis", 'y3', ...
1293+
"xaxis", "x1", ...
1294+
"yaxis", "y3", ...
12951295
"x", x, ...
12961296
"y", dt', ...
1297-
"mode", 'lines', ...
1297+
"mode", "lines", ...
12981298
"line", struct( ...
12991299
"color", "rgb(0,114,189)", ...
13001300
"width", 0.5, ...

0 commit comments

Comments
 (0)