表示带有Gnuplot的散点图的灰色调色板

问题描述 投票:0回答:1

我有一些引文数量与出版年份的散点图

enter image description here

此人对应于一位著名的德国物理学家..

我用于绘制该图的命令是:

gnuplot -e "set title 'Citations vs Publication Year'; set xlabel 'Publication Year'; set ylabel 'Citations'; set terminal png size 800,600; set output 'citations.png'; plot 'plotting_data.txt' with points pt 7 lc rgb 'red'; pause -1"

是否有可能制作类似“灰色调色板”的图,其中黑带代表被引用次数较高的点,白带代表被引用次数较低的点..我想一个带代表一年的引用时间。那一年有多本出版物,我想它可以被引用次数最多的出版物..

enter image description here

例如,在德国物理学家的例子中,对应于1905的波段将变得非常黑,而1910的波段将变成灰色……等等。

plot gnuplot scatter-plot grayscale
1个回答
0
投票
set palette gray negative set cbrange [0:*] plot 'plotting_data.txt' using 1:2:2 with points pt 7 lc palette
© www.soinside.com 2019 - 2024. All rights reserved.