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

Errorbars are not rotated in horizontal bar plot #1907

Closed
johannes-fischer opened this issue Jan 29, 2019 · 1 comment · Fixed by #4164
Closed

Errorbars are not rotated in horizontal bar plot #1907

johannes-fischer opened this issue Jan 29, 2019 · 1 comment · Fixed by #4164
Labels

Comments

@johannes-fischer
Copy link

I wanted to attach error bars to a horizontal bar plot, however they seem to be anchored to where the bars would end if the orientation was vertical. Example:
bar(rand(3), fill=:orange, orientation=:h, xerror=fill(.2,3), xlims=(0,4),ylims=(0,4))
I've tried GR, PyPlot and Plotly backends.

@bvolkmer
Copy link

As an addition: If the error type is not compatible with the data type of the other axis, it will fail.

For example: xdata::String and yerror::Float32 will result in:

  • Pyplot and plotlyjs will plot no error bars without warning
  • gr will fail with MethodError: no method matching isfinite(::String)

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

Successfully merging a pull request may close this issue.

3 participants