In [9]:
%matplotlib inline
import matplotlib.pyplot as plt
In [23]:
# Creating Data Function
def generate_data(x=10,ran=9):
raw = [randint(0,ran) for _ in range(x)]
return zip(*list(enumerate(raw)))
In [25]:
from random import randint
fig = plt.figure(figsize=(17,9))
X, Y = generate_data()
plt.scatter(X,Y, label="Scatter Plot", color='k',marker="p")
plt.xlabel('x')
plt.ylabel('y')
plt.title('Scatter Plot')
plt.legend()
# Plotting
plt.grid(True)
plt.show()
In [12]:
%%HTML
<iframe src="http://matplotlib.org/api/markers_api.html" width="980" height="1000"></iframe>