File tree 2 files changed +22
-2
lines changed
2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ var DASH_PATTERNS = require('../../constants/gl3d_dashes');
23
23
var MARKER_SYMBOLS = require ( '../../constants/gl3d_markers' ) ;
24
24
25
25
var calculateError = require ( './calc_errors' ) ;
26
+ var errorBarsAttributes = require ( '../../components/errorbars/attributes' ) ;
26
27
27
28
function LineWithMarkers ( scene , uid ) {
28
29
this . scene = scene ;
@@ -124,9 +125,9 @@ function calculateErrorParams(errors) {
124
125
if ( e && e . copy_zstyle !== false ) e = errors [ 2 ] ;
125
126
if ( ! e ) continue ;
126
127
127
- capSize [ i ] = e . width / 2 ; // ballpark rescaling
128
+ capSize [ i ] = ( e . width || 0 ) / 2 ; // ballpark rescaling
128
129
color [ i ] = str2RgbaArray ( e . color ) ;
129
- lineWidth = e . thickness ;
130
+ lineWidth = ( e . thickness || errorBarsAttributes . thickness . dflt ) ;
130
131
131
132
}
132
133
Original file line number Diff line number Diff line change
1
+ {
2
+ "data" : [{
3
+ "type" : " scatter3d" ,
4
+ "mode" : " markers" ,
5
+ "x" : [1 ],
6
+ "y" : [1 ],
7
+ "z" : [1 ],
8
+ "error_x" : {
9
+ "type" : " sqrt" ,
10
+ "thickness" : 5
11
+ },
12
+ "error_y" : {
13
+ "type" : " sqrt" ,
14
+ "thickness" : 5 ,
15
+ "color" : " red"
16
+ }
17
+ }],
18
+ "layout" : {}
19
+ }
You can’t perform that action at this time.
0 commit comments