In [1]:
import matplotlib.pyplot as plt
import numpy as np
x = np.arange(20)
y = [x_i + np.random.randn(1) for x_i in x]
a, b = np.polyfit(x, y, 1)
In [2]:
plt.plot(x, y, 'o', np.arange(20), a*np.arange(20)+b, '-')
Out[2]:
In [3]:
from matplotlib_venn import venn2
In [4]:
venn2(subsets = (3, 2, 1))
Out[4]:
In [ ]: