Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error bars not being plotted using errorbar() #168

Closed
xarico10 opened this issue Jul 25, 2021 · 0 comments
Closed

Error bars not being plotted using errorbar() #168

xarico10 opened this issue Jul 25, 2021 · 0 comments

Comments

@xarico10
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants