You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Errorbars separated from markers with negative errors #21101
If unique upper and lower errors are specified, and one of them is negative, then the errorbar will appear separate from the marker. It looks like this was mentioned ages ago in #2717 but I could not find a follow up to that issue.
I understand the documentation states that the error inputs should be positive values, but I would expect some error like ValueError when there is a negative value provided, rather than it trying to make the plot. I would prefer an error being thrown and the plot not being made.
So I see why it is doing this ('we draw the error bar from (val - lower_error, val + upper_error)), but I agree, if we document that negative errors should not work, we should do the validation and raise ValueError
The tasks here are:
add validator to at at least the errorbar method
investigate how much work it would be to add validation to updating the errorbars after-the-fact (I think in that case the user has to do the offsets them selves so there may be nothing we can do)
Activity
tacaswell commentedon Sep 17, 2021
So I see why it is doing this ('we draw the error bar from
(val - lower_error, val + upper_error)), but I agree, if we document that negative errors should not work, we should do the validation and raise ValueErrorThe tasks here are:
errorbarmethodlucafs commentedon Sep 23, 2021
I will try to work on this near future.
Merge pull request #21266 from Kislovskiy/fix-21101
Merge pull request matplotlib#21266 from Kislovskiy/fix-21101
Merge pull request #21266 from Kislovskiy/fix-21101