如何绘制轨迹的热图?python how to plot trajectory heat map
1、方:1:
Plot trajectory heatmap. — mt_heatmap • mousetrap
mt_heatmap(
x,
use = "trajectories",
dimensions = c("xpos", "ypos"),
filename = NULL,
...,
upscale = 1,
plot_dims = FALSE,
verbose = TRUE
)
有点问题,这个是鼠标的轨迹热图;
2、方案2:
python - Plotting a heatmap for trajectory data from a pandas dataframe - Stack Overflow
使用pandas
这个效果也不是我想要的;
很难受
3、方案3:
import numpy as np
import seaborn as sns
import matplotlib.pylab as plt
uniform_data = np.random.rand(10, 12)
ax = sns.heatmap(uniform_data, linewidth=0.5)
plt.show()
这个效果也不是我想要的;
4、方案4:
有点想要的效果;
效果一般