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

TkAgg reports bad option 'foobar' for icon withlogging set to INFO level #10785

Closed
Labels
@robbmcleod

Description

@robbmcleod

Bug summary

TkAgg reports bad option 'foobar' for icon withlogging set to INFO level. The code in question is located here:

https://github.com/matplotlib/matplotlib/blob/d420e66c776becfcf489a0181acf5b777da9f9ea/lib/matplotlib/backends/_backend_tk.py

although I do not see where thisfoobar argument is coming from.

Code for reproduction

importmatplotlib.pyplotaspltimportlogginglogging.basicConfig(level=logging.INFO,datefmt='%m-%d %H:%M')importnumpyasnpplt.switch_backend('TkAgg')plt.figure()plt.plot(np.arange(24),np.linspace(-np.pi,np.pi,24),'+-')plt.show(block=True)

Actual outcome

INFO:matplotlib.backends._backend_tk:Could not load matplotlib icon: bad option "foobar": must be aspect, attributes, client, colormapwindows, command, deiconify, focusmodel, forget, frame, geometry, grid, group, iconbitmap, iconify, iconmask, iconname, iconphoto, iconposition, iconwindow, manage, maxsize, minsize, overrideredirect, positionfrom, protocol, resizable, sizefrom, stackorder, state, title, transient, or withdraw

Expected outcome

Nothing.

Matplotlib version

  • Operating system: Windows 10
  • Matplotlib version: 2.2.0
  • Matplotlib backend (print(matplotlib.get_backend())): TkAgg
  • Python version: 3.6.3 Anaconda
  • Jupyter version (if applicable): N/A
  • Other libraries: TkInter version 8.6

Installed viapip install yesterday.

Metadata

Metadata

Assignees

No one assigned

    Labels

    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