You are not logged in.
Pages: 1
Exception has occurred: TclError
expected integer but got "Nerd"
This is the exception I'm getting wen running the following script
import matplotlib.pyplot as plt
dev_x = [25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35]
dev_y = [38496, 42000, 46752, 49320, 53200,
56000, 62316, 64928, 67317, 68748, 73752]
plt.plot(dev_x, dev_y)
plt.show()I'm assuming this has to do with some font I have installed (nerd-font-complete) maybe I did something wrong when trying to install these fonts a few months ago, but I have no idea how "Nerd" is being passed as argument to the call.
I should also mention that I'm using i3wm (i3-gaps)
here's the traceback of the error:
Traceback (most recent call last):
File "/home/bamarin/................../mpl_demo.py", line 7, in <module>
plt.plot(dev_x, dev_y)
File "/usr/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2840, in plot
return gca().plot(
File "/usr/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2368, in gca
return gcf().gca(**kwargs)
File "/usr/lib/python3.9/site-packages/matplotlib/pyplot.py", line 747, in gcf
return figure()
File "/usr/lib/python3.9/site-packages/matplotlib/pyplot.py", line 687, in figure
figManager = new_figure_manager(num, figsize=figsize,
File "/usr/lib/python3.9/site-packages/matplotlib/pyplot.py", line 315, in new_figure_manager
return _backend_mod.new_figure_manager(*args, **kwargs)
File "/usr/lib/python3.9/site-packages/matplotlib/backend_bases.py", line 3494, in new_figure_manager
return cls.new_figure_manager_given_figure(num, fig)
File "/usr/lib/python3.9/site-packages/matplotlib/backends/_backend_tk.py", line 902, in new_figure_manager_given_figure
manager = cls.FigureManager(canvas, num, window)
File "/usr/lib/python3.9/site-packages/matplotlib/backends/_backend_tk.py", line 414, in __init__
self.toolbar = self._get_toolbar()
File "/usr/lib/python3.9/site-packages/matplotlib/backends/_backend_tk.py", line 426, in _get_toolbar
toolbar = NavigationToolbar2Tk(self.canvas, self.window)
File "/usr/lib/python3.9/site-packages/matplotlib/backends/_backend_tk.py", line 512, in __init__
self._buttons[text] = button = self._Button(
File "/usr/lib/python3.9/site-packages/matplotlib/backends/_backend_tk.py", line 588, in _Button
b = tk.Button(master=self, text=text, image=image, command=command)
File "/usr/lib/python3.9/tkinter/__init__.py", line 2650, in __init__
Widget.__init__(self, master, 'button', cnf, kw)
File "/usr/lib/python3.9/tkinter/__init__.py", line 2572, in __init__
self.tk.call(
_tkinter.TclError: expected integer but got "Nerd"Last edited by Bamarin (2021-03-08 13:16:51)
Offline
Pages: 1