def heatmap(self, get_ball_var):
heat_values = get_ball_var('ball_position_history')
# Generate some test data
x = np.random.randn(8873)
y = np.random.randn(8873)
heatmap, xedges, yedges = np.histogram2d(x, y, bins=50)
extent = [xedges[0], xedges[-1], yedges[0], yedges[-1]]
# x = np.random.randn(100000)
y = np.random.randn(100000)
# print(y)
# plt.hist2d(HeatValues[0],HeatValues[1],bins=100);
# plt.clf()
# plt.imshow(heatmap, extent=extent)
# plt.show()
评论列表
文章目录