Plt.Scatter: How to add title and xlabel and ylabel

From the documentation of plt.scatter() there is no such arguments to set the title or labels.

But neither does the plt.plot() command have such arguments. plt.plot(x,y, title="title") throws an error AttributeError: Unknown property title. So I wonder why this should work in either case.

In any case, the usual way to set the title is plt.title. The usual way to set the labels is plt.xlabeland plt.ylabel.

import matplotlib.pyplot as plt

x= [8,3,5]; y = [3,4,5]
plt.scatter(x,y)
plt.title("title")
plt.xlabel("x-label")
plt.ylabel("y-label")
plt.show()

It's as simple as adding:

plt.xlabel('your xlabel')
plt.ylabel('your ylabel')
plt.title('your title')

after the plt.scatter() command. Then, write plt.show() to display the image with the labels and titles. You may read about it more here: http://matplotlib.org/users/text_intro.html