如何使用gnuplot自动绘制透明线?

如何使用gnuplot自动绘制透明线?,gnuplot,Gnuplot,如何使用gnuplot自动绘制透明线 我用col=adjustcolor(I,alpha.f=0.2)自动绘制直方图,如下所示。 我想在gnuplot中做同样的事情 hist(rnorm(1000,mean=2),col=adjustcolor(1,alpha.f=0.2),xlim=c(0,10)) for(i in 2:3){ hist(rnorm(1000,mean=2*i),col=adjustcolor(i,alpha.f=0.2),add=T) } legend("topleft

如何使用gnuplot自动绘制透明线

我用
col=adjustcolor(I,alpha.f=0.2)
自动绘制直方图,如下所示。 我想在gnuplot中做同样的事情

hist(rnorm(1000,mean=2),col=adjustcolor(1,alpha.f=0.2),xlim=c(0,10))
for(i in 2:3){
  hist(rnorm(1000,mean=2*i),col=adjustcolor(i,alpha.f=0.2),add=T)
}
legend("topleft",legend=c(1,2,3),col=1:3,lty=1)

您的意思是希望直方图具有一定的透明度吗?这可以通过使用
设置样式填充来实现:

set term png
set out "test.png"

set style fill transparent solid 0.50 border
plot "-" w boxes lc "blue"
1 10
2 12
3 15
4 17
5 15
6 12
7 10
8 08
9 06
另外,如果希望实际行是透明的,只需修改
lc
参数:

plot "-" w boxes lc rgb "#80EE6363"
其中,
#
后面的前两位数字是透明度,接下来的6个字符是所需颜色的RGB代码。希望有帮助