Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Bug]: Errorbars separated from markers with negative errors #21101

Closed
Labels
Good first issueOpen a pull request against these issues if there are no active ones!
Milestone
@nbrunett

Description

@nbrunett

Bug summary

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.

Code for reproduction

importmatplotlib.pyplotasplt# 1plt.errorbar([0], [0],yerr=[[-0.5], [1]],marker="o")# 2plt.errorbar([0], [0],xerr=[[-0.5], [1]],marker="o")# 3plt.errorbar([0], [0],xerr=[[-0.5], [1]],yerr=[[-0.5], [1]],marker="o")

Actual outcome

1

image

2

image

3

image

Expected outcome

I understand the documentation states that the error inputs should be positive values, but I would expect some error likeValueError 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.

Operating system

CentOS Linux release 7.9.2009 (Core)

Matplotlib Version

3.4.3

Matplotlib Backend

module://matplotlib_inline.backend_inline

Python version

3.9.6

Jupyter version

3.1.9

Other libraries

No response

Installation

conda

Conda channel

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good first issueOpen a pull request against these issues if there are no active ones!

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp