heatmaps
- Create a jupyter notebook that creates a random dataset as follows
import matplotlib as mpl
import matplotlib.pyplot as plt
N = 1000
x = np.random.randn(N)
y = -x + 0.3*np.random.randn(N)
plt.plot(x, y, '.')
plt.show()
- Visualize this dataset using a heatmap with different binwidths dx and dy
hint : plt.imshow()