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 #44

Closed
vascotenner opened this issue Apr 29, 2015 · 7 comments
Closed

Errorbars #44

vascotenner opened this issue Apr 29, 2015 · 7 comments

Comments

@vascotenner
Copy link
Contributor

Is it possible to create plots with errorbars, like plt.errorbar does?

@philippjfr
Copy link
Member

This has been one of our main to-do items for a long time now. Now that someone has requested them I don't think there is any excuse not to do them. We'll discuss it today and get back to you.

@jbednar
Copy link
Member

jbednar commented Apr 29, 2015

Yes, errorbars and stream plots are sorely needed, but note that they can currently be done using the Seaborn interface (see the Seaborn and Pandas tutorial).

@philippjfr
Copy link
Member

Just added an ErrorBars Element type. I'll rebuild the Elements tutorial now so there should be an example up on the website fairly soon.

@philippjfr
Copy link
Member

The example is now live and can be seen here. Let us know if it works for you and if you need any modifications or have any suggestions. I'll close this issue now.

@jbednar
Copy link
Member

jbednar commented May 1, 2015

Looks good. In the new example, shouldn't it say vertical=False for the second plot? They certainly seem to be horizontal.

I'm not sure that vertical or horizontal is really a plotting option -- isn't this a semantic issue, i.e. declaring that the data is ranging over either x or y? And if so, shouldn't it be a parameter for the Element, not the Element's style options? It doesn't seem like a stylistic choice, to me, but maybe I'm confused.

@philippjfr
Copy link
Member

I clearly didn't pay enough attention when implementing it at first but I had already renamed it to horizontal last night. I also wondered what the best way of selecting x-error bars vs. y-error bars was, initially I had separate Elements for each just like we have VLine and HLine. I don't know what the best option is but a parameter on the Element is probably it, any suggestions for naming it?

@jbednar
Copy link
Member

jbednar commented May 1, 2015

Maybe key_index, to specify which key_dimension the error values apply to? By default, key_index=0, indicating that the error bars are for values specified on the x axis, and nearly everyone would use that default (resulting in vertical error bars). But the error bars could apply to any key_dimension in principle, which this proposal would allow.

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

3 participants