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

contour ignoreslw argument, no warning/error #13848

Open
@lzkelley

Description

@lzkelley

Bug report

The commandcontour does not uselw arguments (unlike, e.g.,plot), and does not report an error or warning. Thelinewidths argument works fine. A simple fix is to explicitly look forlw arguments and setlinewidths to that. Happy to put in a PR for this, but I wanted to check first.

importnumpyasnpimportmatplotlibasmplimportmatplotlib.pyplotaspltprint(mpl.__version__)fig,axes=plt.subplots(ncols=3)forax,lw,arginzip(axes, [1.0,4.0,4.0], ['lw','lw','linewidths']):aa=np.random.normal(size=1000)bb=np.random.normal(size=aa.size)hist,xe,ye=np.histogram2d(aa,bb)kw= {arg:lw}ax.contour(hist,**kw)ax.set_title('{}: {}'.format(arg,lw))plt.show()

Actual outcome

mpl

Matplotlib version

  • Matplotlib version: 3.0.2

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