AttributeError Code, How to fix it?
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[16], line 2
1 plt.scatter(x1,y)
----> 2 plt.xlable('SAT',fontsize=20)
3 plt.ylable('GPA',fontsize=20)
4 plt.show()
AttributeError: module 'matplotlib.pyplot' has no attribute 'xlable'
AttributeError Traceback (most recent call last)
Cell In[16], line 2
1 plt.scatter(x1,y)
----> 2 plt.xlable('SAT',fontsize=20)
3 plt.ylable('GPA',fontsize=20)
4 plt.show()
AttributeError: module 'matplotlib.pyplot' has no attribute 'xlable'
1 answers ( 0 marked as helpful)
Hey Sahar,
Thank you for reaching out.
Please note that you have a typo in the name of the parameter. In line 2, the parameter reads "xlable" instead of "xlabel". The same holds for line 3 - "ylable" instead of "ylabel".
Let me know if you encounter other issues.
Kind regards,
365 Hristina
Thank you for reaching out.
Please note that you have a typo in the name of the parameter. In line 2, the parameter reads "xlable" instead of "xlabel". The same holds for line 3 - "ylable" instead of "ylabel".
Let me know if you encounter other issues.
Kind regards,
365 Hristina