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]:
[<matplotlib.lines.Line2D at 0x7f7c9b4a1f28>,
 <matplotlib.lines.Line2D at 0x7f7c9b4af208>]

In [3]:
from matplotlib_venn import venn2

In [4]:
venn2(subsets = (3, 2, 1))


Out[4]:
<matplotlib_venn._common.VennDiagram at 0x7f7c95c4f2b0>

In [ ]: