8000 [MNT]: Consistency on Interface · Issue #25596 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
[MNT]: Consistency on Interface #25596
Closed
@suuuehgi

Description

@suuuehgi

Summary

D = {ii:ii for ii in range(10)}

fig, ax = plt.subplots()
plt.errorbar(D.keys(), D.values(), D.values())

raises the error

TypeError: unsupported operand type(s) for *: 'int' and 'dict_values'

while

fig, ax = plt.subplots()
ax.errorbar(D.keys(), D.values(), D.values())

works as expected.

(mpl v. 3.5.3)

Proposed fix

Both work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Difficulty: Mediumhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesGood first issueOpen a pull request against these issues if there are no active ones!Maintenance

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0