Search
 
SCRIPT & CODE EXAMPLE
 

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()
Comment

PREVIOUS NEXT
Code Example
Python :: python tts 
Python :: name unnamed column pandas 
Python :: update anaconda 
Python :: python copy a 2D list 
Python :: make dataframe from list of tuples 
Python :: django form password field 
Python :: python sys is not defined 
Python :: tkinter boilerplate 
Python :: convert string to unicode python 3 
Python :: save pandas dataframe to parquet 
Python :: how to get all links text from a website python beautifulsoup 
Python :: how to get only first record in django 
Python :: python add titles to subplots 
Python :: best games made in pygame 
Python :: panda count how many values are less than n in a column 
Python :: mysql config not found 
Python :: python import json into pymongo 
Python :: how to create progress bar python 
Python :: numpy random float array between 0 and 1 
Python :: how to split an input in python by comma 
Python :: print specific part in bold or colours and end. 
Python :: datetime 30 days ago python 
Python :: cv2 image object to base64 string 
Python :: len table python 
Python :: text adventure in python 
Python :: python list ascii 
Python :: python parsing meaning 
Python :: how to unzip files using zipfile module python 
Python :: heroku change python version 
Python :: pymysql check if table exists 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =