matplotlib show imaginary numbers

Solutions on MaxInterview for matplotlib show imaginary numbers by the best coders in the world

showing results for - "matplotlib show imaginary numbers"
Allan
30 Jul 2016
1cnums = np.arange(5) + 1j * np.arange(6,11)
2X = [x.real for x in cnums]
3Y = [x.imag for x in cnums]
4plt.scatter(X,Y, color='red')
5plt.show()