Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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()
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #matplotlib #show #imaginary #numbers
ADD COMMENT
Topic
Name
5+4 =