| Hosted by CoCalc | Download
Kernel: Python 3 (system-wide)
%matplotlib inline import matplotlib.pyplot as plt plt.rcParams["figure.figsize"] = (7, 7) import numpy as np
xx = np.random.randn(10000) + .45 yy = np.hstack(np.random.randn(1000) * (i / 10.) + i for i in range(1,11))
/usr/local/lib/python3.6/dist-packages/ipykernel/__main__.py:2: FutureWarning: arrays to stack must be passed as a "sequence" type such as list or tuple. Support for non-sequence iterables such as generators is deprecated as of NumPy 1.16 and will raise an error in the future. from ipykernel import kernelapp as app
plt.hexbin(xx, yy, gridsize=(40, 40))
<matplotlib.collections.PolyCollection at 0x7f4556ae1940>
Image in a Jupyter notebook
plt.scatter(xx, yy, marker=".", alpha=0.05)
<matplotlib.collections.PathCollection at 0x7f452c112470>
Image in a Jupyter notebook
plt.show()