@@ -23,7 +23,10 @@ function makeAxesValObject(axLetter) {
23
23
editType : 'plot'
24
24
} ,
25
25
description : [
26
- '..'
26
+ 'Sets the list of ' + axLetter + ' axes' ,
27
+ 'corresponding to this splom trace.' ,
28
+ 'By default, a splom will match the first N ' + axLetter + 'axes' ,
29
+ 'where N is the number of input dimensions.'
27
30
] . join ( ' ' )
28
31
} ;
29
32
}
@@ -37,31 +40,32 @@ module.exports = {
37
40
role : 'info' ,
38
41
dflt : true ,
39
42
editType : 'calc' ,
40
- description : ''
43
+ description : [
44
+ 'Determines whether or not this dimension is show on the graph.' ,
45
+ 'Note that even visible false dimension contribute to the' ,
46
+ 'default grid generate by this splom trace.'
47
+ ] . join ( ' ' )
41
48
} ,
42
49
label : {
43
50
valType : 'string' ,
44
51
role : 'info' ,
45
52
editType : 'calc' ,
46
- description : ''
53
+ description : 'Sets the label corresponding to this splom dimension. '
47
54
} ,
48
55
values : {
49
56
valType : 'data_array' ,
50
57
role : 'info' ,
51
58
editType : 'calc+clearAxisTypes' ,
52
- description : [
53
- ''
54
- ] . join ( ' ' )
59
+ description : 'Sets the dimension values to be plotted.'
55
60
} ,
56
61
57
62
// TODO should add an attribute to pin down x only vars and y only vars
58
63
// like https://seaborn.pydata.org/generated/seaborn.pairplot.html
59
64
// x_vars and y_vars
60
65
61
- editType : 'calc+clearAxisTypes' ,
62
- description : [
63
- '..'
64
- ] . join ( ' ' )
66
+ // maybe more axis defaulting option e.g. `showgrid: false`
67
+
68
+ editType : 'calc+clearAxisTypes'
65
69
} ,
66
70
67
71
mode : scatterGlAttrs . mode ,
@@ -75,26 +79,43 @@ module.exports = {
75
79
xaxes : makeAxesValObject ( 'x' ) ,
76
80
yaxes : makeAxesValObject ( 'y' ) ,
77
81
78
- showdiagonal : {
79
- valType : 'boolean' ,
80
- role : 'info' ,
81
- dflt : true ,
82
- editType : 'plot' ,
83
- description : ''
82
+ diagonal : {
83
+ visible : {
84
+ valType : 'boolean' ,
85
+ role : 'info' ,
86
+ dflt : true ,
87
+ editType : 'plot' ,
88
+ description : [
89
+ 'Determines whether or not subplots on the diagonal are displayed.'
90
+ ] . join ( ' ' )
91
+ } ,
92
+
93
+ // type: 'scattergl' | 'histogram' | 'box' | 'violin'
94
+ // ...
95
+ // more options
96
+
97
+ editType : 'plot'
84
98
} ,
99
+
85
100
showupperhalf : {
86
101
valType : 'boolean' ,
87
102
role : 'info' ,
88
103
dflt : true ,
89
104
editType : 'plot' ,
90
- description : ''
105
+ description : [
106
+ 'Determines whether or not subplots on the upper half' ,
107
+ 'from the diagonal are displayed.'
108
+ ] . join ( ' ' )
91
109
} ,
92
110
showlowerhalf : {
93
111
valType : 'boolean' ,
94
112
role : 'info' ,
95
113
dflt : true ,
96
114
editType : 'plot' ,
97
- description : ''
115
+ description : [
116
+ 'Determines whether or not subplots on the lower half' ,
117
+ 'from the diagonal are displayed.'
118
+ ] . join ( ' ' )
98
119
} ,
99
120
100
121
selected : scatterGlAttrs . selected ,
0 commit comments