@@ -22,29 +22,29 @@ var attrs = {
22
22
role : 'info' ,
23
23
editType : 'calc+clearAxisTypes' ,
24
24
description : [
25
- 'Sets the x positions of the cones. ' ,
26
- 'When `vx`, `vy`, `vz` are not set, ' ,
27
- ' these are also the x coordinates of the u/v/w vector field .'
25
+ 'Sets the x coordinates of the vector field ' ,
26
+ 'If `cones` positions are not provided, this array ' ,
27
+ 'corresponds to the x coordinates of the cones displayed as well .'
28
28
] . join ( ' ' )
29
29
} ,
30
30
y : {
31
31
valType : 'data_array' ,
32
32
role : 'info' ,
33
33
editType : 'calc+clearAxisTypes' ,
34
34
description : [
35
- 'Sets the y positions of the cones. ' ,
36
- 'When `vx`, `vy`, `vz` are not set, ' ,
37
- ' these are also the y coordinates of the u/v/w vector field .'
35
+ 'Sets the y coordinates of the vector field ' ,
36
+ 'If `cones` positions are not provided, this array ' ,
37
+ 'corresponds to the y coordinates of the cones displayed as well .'
38
38
] . join ( ' ' )
39
39
} ,
40
40
z : {
41
41
valType : 'data_array' ,
42
42
role : 'info' ,
43
43
editType : 'calc+clearAxisTypes' ,
44
44
description : [
45
- 'Sets the z positions of the cones. ' ,
46
- 'When `vx`, `vy`, `vz` are not set, ' ,
47
- ' these are also the z coordinates of the u/v/w vector field .'
45
+ 'Sets the z coordinates of the vector field ' ,
46
+ 'If `cones` positions are not provided, this array ' ,
47
+ 'corresponds to the z coordinates of the cones displayed as well .'
48
48
] . join ( ' ' )
49
49
} ,
50
50
@@ -64,20 +64,37 @@ var attrs = {
64
64
description : 'Sets the z components of the vector field.'
65
65
} ,
66
66
67
- vx : {
68
- valType : 'data_array' ,
69
- editType : 'calc' ,
70
- description : 'Sets the x coordinates of the vector field mesh.'
71
- } ,
72
- vy : {
73
- valType : 'data_array' ,
74
- editType : 'calc' ,
75
- description : 'Sets the y coordinates of the vector field mesh.'
76
- } ,
77
- vz : {
78
- valType : 'data_array' ,
67
+ cones : {
68
+ // potential attributes to add:
69
+ //
70
+ // - meshmode: 'cartesian-product', 'pts', 'grid'
71
+ //
72
+ // under `meshmode: 'grid'`
73
+ // - (x|y|z)grid.start
74
+ // - (x|y|z)grid.end
75
+ // - (x|y|z)grid.size
76
+
77
+ x : {
78
+ valType : 'data_array' ,
79
+ editType : 'calc' ,
80
+ description : 'Sets the x coordinates of the cones to be displayed.'
81
+ } ,
82
+ y : {
83
+ valType : 'data_array' ,
84
+ editType : 'calc' ,
85
+ description : 'Sets the y coordinates of the cones to be displayed.'
86
+ } ,
87
+ z : {
88
+ valType : 'data_array' ,
89
+ editType : 'calc' ,
90
+ description : 'Sets the z coordinates of the cones to be displayed.'
91
+ } ,
92
+
79
93
editType : 'calc' ,
80
- description : 'Sets the z coordinates of the vector field mesh.'
94
+ description : [
95
+ 'By setting `cones.x`, `cones.y` and `cones.z` to 1D arrays,' ,
96
+ 'plotly creates a mesh using the cartesian product of those 3 arrays.'
97
+ ] . join ( ' ' )
81
98
} ,
82
99
83
100
sizemode : {
0 commit comments