plt.scatter(X[:, 0], X[:, 1]) plt.grid() plt.xlabel('x') plt.ylabel('y') plt.title('Generated x-y data with dependence') plt.show()