After diving with J.shape[0], I am still not getting the correct scale to map the trajectory.
Gradient Descent Trajectory
J=np.zeros((80,80)) for i in range(J.shape[0]): for j in range(J.shape[1]): Y_=T0[i,j]+T1[i,j]*X #T0 and T1 are now a surface J[i,j]=np.sum((Y_-Y)**2)/T0.shape[0] #Calculating loss function at every point on the surface