You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""var data = [{"type":"carpet","y":[12.0,13.5,14.0,13.0,14.5,15.0,15.5,16.5,17.5,18.0,18.5,20.0],"a":[6.0,6.0,6.0,5.0,5.0,5.0,4.5,4.5,4.5,4.0,4.0,4.0],"b":[3.0,2.0,1.0,3.0,2.0,1.0,3.0,2.0,1.0,3.0,2.0,1.0],"carpet":"carpet2"},{"type":"scattercarpet","name":"Point","mode":"markers","a":[4.0,5.0,5.0,6.0],"b":[1.0,1.0,2.0,3.0],"carpet":"carpet2","marker":{}}];"""
71
+
|> chartGeneratedContains point
72
+
);
73
+
testCase "PointCarpet layout"(fun()->
74
+
emptyLayout point
75
+
);
76
+
testCase "LineCarpet data"(fun()->
77
+
"""var data = [{"type":"carpet","y":[22.0,23.5,24.0,23.0,24.5,25.0,25.5,26.5,27.5,28.0,28.5,30.0],"a":[4.0,4.0,4.0,4.5,4.5,4.5,5.0,5.0,5.0,6.0,6.0,6.0],"b":[1.0,2.0,3.0,1.0,2.0,3.0,1.0,2.0,3.0,1.0,2.0,3.0],"carpet":"carpet3"},{"type":"scattercarpet","name":"Line","mode":"lines","a":[4.0,5.0,5.0,6.0],"b":[1.0,1.0,2.0,3.0],"carpet":"carpet3","marker":{},"line":{}}];"""
78
+
|> chartGeneratedContains line
79
+
);
80
+
testCase "LineCarpet layout"(fun()->
81
+
emptyLayout line
82
+
);
83
+
testCase "SplineCarpet data"(fun()->
84
+
"""var data = [{"type":"carpet","y":[32.0,33.5,34.0,33.0,34.5,35.0,35.5,36.5,37.5,38.0,38.5,40.0],"a":[6.0,6.0,6.0,5.0,5.0,5.0,4.5,4.5,4.5,4.0,4.0,4.0],"b":[3.0,2.0,1.0,3.0,2.0,1.0,3.0,2.0,1.0,3.0,2.0,1.0],"carpet":"carpet4"},{"type":"scattercarpet","name":"Spline","mode":"lines","a":[4.0,5.0,5.0,6.0],"b":[1.0,1.0,2.0,3.0],"carpet":"carpet4","marker":{},"line":{"shape":"spline"}}];"""
85
+
|> chartGeneratedContains spline
86
+
);
87
+
testCase "SplineCarpet layout"(fun()->
88
+
emptyLayout spline
89
+
);
90
+
testCase "BubbleCarpet data"(fun()->
91
+
"""var data = [{"type":"carpet","y":[42.0,43.5,44.0,43.0,44.5,45.0,45.5,46.5,47.5,48.0,48.5,50.0],"a":[4.0,4.0,4.0,4.5,4.5,4.5,5.0,5.0,5.0,6.0,6.0,6.0],"b":[1.0,2.0,3.0,1.0,2.0,3.0,1.0,2.0,3.0,1.0,2.0,3.0],"carpet":"carpet5"},{"type":"scattercarpet","name":"Bubble","mode":"markers","a":[4.0,5.0,5.0,6.0],"b":[1.0,1.0,2.0,3.0],"carpet":"carpet5","marker":{"size":[5,10,15,20]}}];"""
92
+
|> chartGeneratedContains bubble
93
+
);
94
+
testCase "BubbleCarpet layout"(fun()->
95
+
emptyLayout bubble
96
+
);
97
+
98
+
]
99
+
100
+
101
+
letcontour=
102
+
[
103
+
Chart.Carpet(
104
+
"contour",
105
+
A =[0.;1.;2.;3.;0.;1.;2.;3.;0.;1.;2.;3.],
106
+
B =[4.;4.;4.;4.;5.;5.;5.;5.;6.;6.;6.;6.],
107
+
X =[2.;3.;4.;5.;2.2;3.1;4.1;5.1;1.5;2.5;3.5;4.5],
108
+
Y =[1.;1.4;1.6;1.75;2.;2.5;2.7;2.75;3.;3.5;3.7;3.75],
0 commit comments