import numpy as np
import numpy.random
import matplotlib.pyplot as plt
# data - random for example
seed (123)
x = np.random.randn(100000)
y = np.random.randn(100000)
# pixel marker
plot (x, y, ",")
import numpy as np
import numpy.random
import matplotlib.pyplot as plt
# data - random for example
seed (123)
x = np.random.randn(100000)
y = np.random.randn(100000)
out = hist2d(x,y,bins=100)
import numpy as np
import numpy.random
import matplotlib.pyplot as plt
# data - random for example
seed (123)
x = np.random.randn(100000)
y = np.random.randn(100000)
heatm, xedg, yedg = np.histogram2d(x, y, bins=100)
extent = [xedg[0], xedg[-1], yedg[0], yedg[-1]]
plt.clf()
#heatmap
plt.imshow(heatm, extent=extent)
plt.show()
No comments:
Post a Comment