Skip to content

Error bars not being plotted using errorbar() #168

Closed
@xarico10

Description

@xarico10

For any plot using errorbar(), error bars are not being plotted and a 2D regular plot is showed instead.

For example,

x = 1:10:100;
y = [20 30 45 40 60 65 80 75 95 90];
err = 8*ones(size(y));
errorbar(x,y,err)

fig2plotly();

Expected and generated (https://chart-studio.plotly.com/~xarico10/216/#/) plots:
Captura de Pantalla 2021-07-25 a la(s) 2 02 32 p  m
Captura de Pantalla 2021-07-25 a la(s) 2 02 21 p  m

Therefore, any input argument related to error bars is working either:

x = 1:10:100;
y = [20 30 45 40 60 65 80 75 95 90];
yneg = [1 3 5 3 5 3 6 4 3 3];
ypos = [2 5 3 5 2 5 2 2 5 5];
xneg = [1 3 5 3 5 3 6 4 3 3];
xpos = [2 5 3 5 2 5 2 2 5 5];
errorbar(x,y,yneg,ypos,xneg,xpos,'o')

fig2plotly();

Expected and generated (https://chart-studio.plotly.com/~xarico10/218/#/) plots:

Captura de Pantalla 2021-07-25 a la(s) 2 05 47 p  m

Captura de Pantalla 2021-07-25 a la(s) 2 05 55 p  m

In both cases, the following warning message is printed:

Unrecognized field name "UData".
We had trouble parsing the errorbar object.
This trace might not render properly.

Examples on using errorbar() can be found on:
https://www.mathworks.com/help/matlab/ref/errorbar.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions