-
Notifications
You must be signed in to change notification settings - Fork 105
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
Option for adding errorbar legend #440
Comments
see here
|
Not actually... That's a colorbar. The error bar is not shown in the legend in my original left figure. |
Ah my bad I read your original question wrong! Use errorbar instead import numpy as np
import pandas as pd
import proplot as pplt
state = np.random.RandomState(51423)
data = state.rand(20, 8).cumsum(axis=0).cumsum(axis=1)[:, ::-1]
data = data + 20 * state.normal(size=(20, 8)) + 30
data = pd.DataFrame(data, columns=np.arange(0, 16, 2))
fig, ax = pplt.subplots()
x = np.linspace(0, 10)
y = x
yerr = abs(np.random.randn(x.size))
h = ax.errorbar(x, y, yerr=yerr, label="test")
ax.legend()
pplt.show(block=1) |
Thanks. My suggestion was to include that option with That way, it will be more consistent. |
I see that is a bit inconsistent indeed. I can put this on the stack of todos. Should be an easy fix. |
Note to-self:
|
Description
Hi, I think it will be great if we have an option to show error bar in the legend similar to what shade and fade do.
Current behavior
Currently, we cannot show error bar in the legend. Only the line is shown in the left figure.
Proplot version
3.4.3
0.9.7
The text was updated successfully, but these errors were encountered: