Plotly.js translation of plotly/plotly.py#1139 reported by @jdieg0
generating a Scatter plot with a logarithmic y axis and given error_y works fine whereas creating a similar plot with Scatter3d with error bars results in extremely large error bars. The proportions of the error bars in the 3D plot are correct if type='log' is omitted.
Codepen: https://codepen.io/anon/pen/YOZyQq
In scatter the error bars work as expected.
// ## Constantsvarx=[0.,1.,2.,3.,4.,5.,6.,7.,8.,9.]vary=x.map(function(){return0})varz=[1.e+00,1.e+01,1.e+02,1.e+03,1.e+04,1.e+05,1.e+06,1.e+07,1.e+08,1.e+09]varerror_z=[3.e-01,3.e+00,3.e+01,3.e+02,3.e+03,3.e+04,3.e+05,3.e+06,3.e+07,3.e+08]// ## Scatter 2Dvarscatter={'type': 'scatter','error_y': {'array': error_z,'type': 'data','visible': true},'x': x,'y': z}varlayout={'yaxis': {'type': 'log','title': 'z'},'xaxis': {'title': 'x'},'width': 800,'height': 800};vardata=[scatter];// ## Plot scatter 2DPlotly.newPlot('myDiv',data,layout);
In scatter3d the errors bars grow very large
varscatter3d={'type': 'scatter3d','error_z': {'array': error_z,'type': 'data','visible': true},'x': x,'y': y,'z': z}vardata3d=[scatter3d];varlayout3d={'scene': {'zaxis': {'type': 'log'}},'width': 800,'height': 800};// ## Plot scatter 3DPlotly.newPlot('myDiv',data3d,layout3d);
Perhaps error_z.type='data' is not implemented?
Plotly.js translation of plotly/plotly.py#1139 reported by @jdieg0
Codepen: https://codepen.io/anon/pen/YOZyQq
In
scatterthe error bars work as expected.In
scatter3dthe errors bars grow very largePerhaps
error_z.type='data'is not implemented?