In [7]:
# インラインにグラフ描画
%matplotlib inline
# 解像度を高める
%config InlineBackend.figure_format = 'retina'
In [1]:
import numpy as np
import matplotlib.pyplot as plt
In [13]:
x = np.random.rand(100) * np.pi
y = np.sin(x) + np.random.rand(100)*.5
In [14]:
plt.plot(x, y, 'o', alpha=.5)
Out[14]: