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]: Args for tripcolor #22303

Closed
Closed
@ThibaultGROUEIX

Description

@ThibaultGROUEIX

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp