83 / 5,000
Translation results
Based on the error message it seems that plt.plot(X1, Y, 'b')
fails as the two input arrays have a different shape. Could you check the shape of both arrays and explain how plot
should visualize them?
I’m new to python, I don’t know how to do it.
You can take a look at the plt.plot
docs to check a few examples on how to use this method and what the expected inputs are. Once you are more familiar with the plotting mechanism, check the shapes of your current inputs via print(X1.shape)
etc. and make sure they match and are indeed representing what you want to plot.