In [9]:
plt.scatter(cur_w, y = np.power((cur_w-3),2) , c='k', s=50)
plt.plot(w,y,'r')
plt.title(r'$(\omega-3)^2 $')
plt.xlabel(r'$\omega$')
plt.ylabel('y')
plt.text(0.78,-0.1,r' $ Local\enspace minimum\enspace occurs\enspace at\enspace 3.0  \rightarrow $')
plt.grid();