Traceback (most recent call last):
File "e:\PYHON\diabetes-project\diabetes.py", line 161, in <module>
plt.figure(figsize=(10,8))
~~~~~~~~~~^^^^^^^^^^^^^^^^
File "E:\PYHON\diabetes-project\Lib\site-packages\matplotlib\pyplot.py", line 1027, in figure
manager = new_figure_manager(
num, figsize=figsize, dpi=dpi,
facecolor=facecolor, edgecolor=edgecolor, frameon=frameon,
FigureClass=FigureClass, **kwargs)
File "E:\PYHON\diabetes-project\Lib\site-packages\matplotlib\pyplot.py", line 550, in new_figure_manager
return _get_backend_mod().new_figure_manager(*args, **kwargs)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "E:\PYHON\diabetes-project\Lib\site-packages\matplotlib\backend_bases.py", line 3507, in new_figure_manager
return cls.new_figure_manager_given_figure(num, fig)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "E:\PYHON\diabetes-project\Lib\site-packages\matplotlib\backend_bases.py", line 3512, in new_figure_manager_given_figure
return cls.FigureCanvas.new_manager(figure, num)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "E:\PYHON\diabetes-project\Lib\site-packages\matplotlib\backend_bases.py", line 1797, in new_manager
return cls.manager_class.create_with_canvas(cls, figure, num)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
File "E:\PYHON\diabetes-project\Lib\site-packages\matplotlib\backends\_backend_tk.py", line 483, in create_with_canvas
window = tk.Tk(className="matplotlib")
File "C:\Users\Dell\AppData\Local\Programs\Python\Python313\Lib\tkinter\__init__.py", line 2459, in __init__
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_tkinter.TclError: Can't find a usable init.tcl in the following directories:
C:/Users/Dell/AppData/Local/Programs/Python/Python313/lib/tcl8.6 C:/Users/Dell/AppData/Local/Programs/Python/lib/tcl8.6 C:/Users/Dell/AppData/Local/Programs/lib/tcl8.6 C:/Users/Dell/AppData/Local/Programs/Python/library C:/Users/Dell/AppData/Local/Programs/library C:/Users/Dell/AppData/Local/Programs/tcl8.6.14/library C:/Users/Dell/AppData/Local/tcl8.6.14/library
This probably means that Tcl wasn't installed properly.
المشكله في الكود ده
plt.figure(figsize=(12,8))
sns.histplot(data=diabetes , x="Insulin" , bins=30, kde=True)
plt.title("Distribution of Insulin Levels")
plt.xlabel("Insuline Level")
plt.ylabel("Frequency")
plt.grid(True)
plt.show()