..Hi全部。
我想要绘制矩阵色图(热图),但是我想要用打印在一行中的数据绘制热图。我试过了
p for[i=5:15] 'line' u (i%2):(i/2%10):i+1 w image
因此gnuplot显示警告图像至少需要二维数据。
我的数据集是这样的
0.1(node 1 value at time step 1) 0.1(node 2 "") 0.3(node 3 "") 0.2(node 4 "")
0.5(node 1 value at time step 2) 1.2(node 2 "
如何从Python中的2D散点图数据中创建一个热图,其中对于散射图中的每个(x,y)点,它都有一个z值?Z值将是用于绘制热图的值。
例如,在R中,我可以使用:
# This example is from http://knowledge-forlife.com/r-creating-heatmap-scatterplot-data/
#I'm just setting the seed so you can see the same example on your computer
set.seed(1)
#Our X data
x <- runif(150)
#Our