Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

matplotlib plot 2d point

import numpy as np
import matplotlib.pyplot as plt

N = 50
x = np.random.rand(N)
y = np.random.rand(N)

plt.scatter(x, y)
plt.show()
Comment

PREVIOUS NEXT
Code Example
Python :: Concat and Append DFs Python 
Python :: python make a new window 
Python :: pygame how to get surface lenght 
Python :: how to get location using python 
Python :: python bash command 
Python :: rotate image by specific angle opencv 
Python :: os.listdir in python 
Python :: numpy generate random 2d array 
Python :: rename column pandas 
Python :: python apply function to dictionary values 
Python :: python largest value in list 
Python :: bar labeling in matplotlib 
Python :: pandas convert multiple columns to categorical 
Python :: extract url from page python 
Python :: python string to array 
Python :: find the first occurrence of item in a list in python 
Python :: python read from stdin 
Python :: get month name from datetime pandas 
Python :: how to translate to string to different alphabet python 
Python :: python undefine variable 
Python :: python randomize a dataframe pandas 
Python :: assigning values in python 
Python :: python sqlite insert 
Python :: how to add delay in python 
Python :: pandas str is in list 
Python :: convert dict to dataframe 
Python :: check pygame version 
Python :: pandas apply function to every row 
Python :: how to change a header in pandas 
Python :: python space separated input 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =