import matplotlib.pyplot as plt
import logging
logging.basicConfig(level=logging.INFO, datefmt='%m-%d %H:%M')
import numpy as np
plt.switch_backend('TkAgg')
plt.figure()
plt.plot( np.arange(24), np.linspace(-np.pi,np.pi,24), '+-')
plt.show(block=True)
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
Nothing.
Bug summary
TkAgg reports bad option 'foobar' for icon with
loggingset 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 this
foobarargument is coming from.Code for reproduction
Actual outcome
Expected outcome
Nothing.
Matplotlib version
print(matplotlib.get_backend())): TkAggInstalled via
pip installyesterday.