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

plt.yscale doesn't throw warning with invalid kwarg #14878

Closed
Milestone
@ghost

Description

Similar to#5619 where when using symlog whereplt.yscale('symlog', linthresy=0.01) , the threshold ends up as the default value.

Seems that should've beenplt.yscale('symlog', linthreshy=0.01) but an error wasn't raised when I put in an invalid kwarg. Minimum working example shown below

importnumpyasnpimportmatplotlib.pyplotaspltx=np.linspace(-1,1,1000)y=10*xplt.subplot(3,1,1)plt.plot(x,y,'x')plt.title('Standard symlog')plt.yscale('symlog')plt.subplot(3,1,2)plt.plot(x,y,'x')plt.title('yscale with linthresy as a kwarg')# Should throw warning as i gave it a invalid kwargplt.yscale('symlog',linthresy=0.01)plt.subplot(3,1,3)plt.plot(x,y,'x')plt.title('yscale with linthreshy as a kwarg')plt.yscale('symlog',linthreshy=0.01)plt.show()

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp