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

Singular keyword arguments in contour don't raise exceptions #1963

Open
@astrofrog

Description

@astrofrog

I have confused myself several times (and have seen it happenmany times with other people) by something like this not working, but also not raising a warning or exception:

plt.contour(image, color='green', linestyle='dotted')

The fact that the keywords are not plural in this case is quite pedantic, but the real issue is that there are not even any warnings or errors, so users are left having no idea why this doesn't work, and are left frustrated when they do find out.

So I would suggest either:

  • raise an exception for non-used keyword arguments (not ideal because it still makes it very pedantic)
  • emit a warning and fix the keyword to the plural version
  • simply accept the singular keywords and just pass them to the plural ones, raising an error if the plural one is defined too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp