fig = plt.figure()
ax = plt.subplot(111)
fig.suptitle('title')
plt.xlabel('x')
plt.ylabel('y')
ax.plot(xs, ys, 'b', label='desc')
ax.legend()
plt.show()
Intersecting matplotlib graph with unsorted data