-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
[MNT]: Consistency on Interface #25596
Copy link
Copy link
Closed
Labels
Difficulty: Mediumhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesGood first issueOpen a pull request against these issues if there are no active ones!Open a pull request against these issues if there are no active ones!Maintenance
Milestone
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Difficulty: Mediumhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesGood first issueOpen a pull request against these issues if there are no active ones!Open a pull request against these issues if there are no active ones!Maintenance