In [1]:
import numpy as np
In [2]:
import matplotlib.pyplot as plt
In [3]:
y = [1, 7, 3, 5, 12]
x = [1, 2, 3, 4, 5]
In [3]:
plt.plot(x, y, marker='o');
In [5]:
y = [1, 7, 3, 5, 12]
x = [1, 2, 3, 4, 5]
plt.plot(x, y, marker='o');
In [5]:
%matplotlib
In [20]:
y = [1, 7, 3, 5, 12, 1, 3, 5, 7, 9, 0, 2, 5, 2, 1, 6, 8, 12, 14, 2, 9, 5, 7, 2, 1, 4, 7, 8, 7, 12, 14, 8, 6, 7, 2, 8, 4, 6, 13, 2, 3, 6, 8, 10, 1, 3, 6, 3, 2, 7, 9, 13, 11, 3, 10, 2, 3, 4, 5, 2, 4, 6, 8, 10, 11, 12, 17, 6, 8, 10, 11, 12, 13, 11, 3, 10, 1.49, 6.34, 1.97, 3.64]
x = [1, 2, 3, 4, 5, 2, 4, 6, 8, 10, 11, 12, 21, 4, 7, 1, 8, 7, 6, 5, 4, 2, 9, 8, 7, 19, 18, 22, 21, 19, 17, 23, 16, 5, 2, 8, 4, 6, 13, 2, 3, 6, 8, 10, 1, 3, 6, 3, 2, 7, 9, 13, 11, 3, 10, 1, 4, 7, 8, 7, 12, 14, 8, 6, 7, 2, 8, 7, 9, 13, 11, 3, 12, 14, 8, 6, 2.49, 7.34, 2.97, 4.64]
In [22]:
plt.scatter(x, y, marker='o', color='red');
In [51]:
y1 = [0.65, 0.47, 0.34, 0.41]
x1 = [0.49, 0.32, 0.40, 0.58]
In [35]:
plt.scatter(x1, y1, marker='o', color='red');
In [52]:
y2 = [1.66, 1.45, 1.33, 1.46]
x2 = [1.50, 1.32, 1.40, 1.60]
In [38]:
plt.scatter(x2, y2, marker='o', color='blue');
In [39]:
plt.show()
In [54]:
plt.scatter([x1, y1],[x1, y2], marker='o', color=['blue', 'red']);
In [55]:
X = [ [randint(0,50) for i in range(0,5)] for i in range(0,24)]
Y = [ [randint(0,50) for i in range(0,5)] for i in range(0,24)]
In [56]:
from random import randint
In [59]:
X = [ [randint(0,50) for i in range(0,6)] for i in range(0,24)]
Y = [ [randint(0,50) for i in range(0,6)] for i in range(0,24)]
In [60]:
plt.scatter(X, Y, marker='o');
In [ ]: