Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed
Description
Bug summary
Thanks for matplotlib!tripcolor
fails if colors are passed with named argument i.ec=values
instead of justvalues
. The error is not very informative and it seems a dangerous practice to ignorekwargs
and only useargs
.
File"/mnt/session_space/conda_envs/latest39/lib/python3.9/site-packages/matplotlib/tri/tripcolor.py", line 57,in tripcolor C = np.asarray(args[0])IndexError: list index out of range
Code for reproduction
plt.tripcolor(vertices[:,0],vertices[:,1],c=values,triangles=triangles)
Actual outcome
File"/mnt/session_space/conda_envs/latest39/lib/python3.9/site-packages/matplotlib/tri/tripcolor.py", line 57,in tripcolor C = np.asarray(args[0])IndexError: list index out of range
Expected outcome
a successful plot.
Additional information
No response
Operating system
No response
Matplotlib Version
3.5.1
Matplotlib Backend
No response
Python version
No response
Jupyter version
No response
Installation
No response