Answers for "python plot complex numbers"

1

matplotlib show imaginary numbers

cnums = np.arange(5) + 1j * np.arange(6,11)
X = [x.real for x in cnums]
Y = [x.imag for x in cnums]
plt.scatter(X,Y, color='red')
plt.show()
Posted by: Guest on March-22-2020

Code answers related to "python plot complex numbers"

Python Answers by Framework

Browse Popular Code Answers by Language