简体   繁体   English

用 Gnuplot 表示 Scatter Plot 的灰色调色板

[英]Gray Palette representing Scatter Plot with Gnuplot

I have some Scatter Plots of Number of Citations vs Year of Publication我有一些引用次数与出版年份的散点图

在此处输入图像描述

This one corresponds to a famous german physicist..这个对应一位著名的德国物理学家。。

The command that I use for plotting that graph is:我用于绘制该图的命令是:

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"

Is it possible to make a plot like a Gray Palette where the black bands represent the dots with higher citations and the white bands represent the dots with lower citations.. I guess one band my represent 1 year.. In the case there are multiple publications that year, I guess it can be taken the publication with the highest number of citations..是否可以像灰色调色板一样制作 plot,其中黑色带代表引用次数较高的点,白色带代表引用次数较低的点。我想一个带代表 1 年。如果有多个出版物那一年,我想它可以被引用次数最多的出版物..

在此处输入图像描述

For example, in the german physicist example, the band corresponding to 1905 is going to be very black, in the band of 1910 is going to be gray.. etc..例如,在德国物理学家的例子中,对应于 1905 的波段将是非常黑的,在 1910 的波段中将是灰色的......等等。

set palette gray negative
set cbrange [0:*]
plot 'plotting_data.txt' using 1:2:2 with points pt 7 lc palette

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM