问题描述
我有两个由多个点组成的重叠图。
[1]:https://i.stack.imgur.com/gYwJz.png .
现在我正在尝试使绿色图的点变得半透明,以查看它们是否确实重叠。我试图修改 rgb alpha 通道 (0xaa00ff00) 以使颜色半透明和/或命令:
设置样式填充透明实心0.5 noborder
但没有运气。
Gnuplot(5.4 版)输入如下:
set terminal pngcairo truecolor size 1000,1000 enhanced font 'Helvetica,20'
set encoding iso_8859_1
set output 'prova4.png'
unset clip points
set clip one
unset clip two
set border 31 front lt -1 lw 1.0
set format x "% g"
set format y "% g"
set format cb "% g"
unset grid
set key title ""
set key inside left top vertical Right noreverse enhanced autotitles nobox
set key noinvert samplen 4 spacing 1 width 0 height 0
set key maxcolumns 0 maxrows 0
set key noopaque
set offsets 0,0
set pointsize 1
set pointintervalbox 1
unset polar
unset parametric
unset decimalsign
set xlabel 'sign({/Symbol l}_2){/Symbol r}(a.u.)' font "Helvetica,30"
set xlabel offset character 0,0 font "" textcolor lt -1 norotate
set xrange [ * : * ] noreverse nowriteback
set ylabel 's(a.u.)' font "Helvetica,30"
set ylabel offset character 0,0 font "" textcolor lt -1 rotate by -270
set yrange [ * : * ] noreverse nowriteback
set cblabel ""
set cblabel offset character 0,0 font "" textcolor lt -1 rotate by -270
set cbrange [ * : * ] noreverse nowriteback
plot 'a.dat' lc rgb '#0x80ff0000' t 'A','b.dat' lc rgb '#0x8000ff00' t 'B'
¿我可以做些什么来使颜色半透明?
解决方法
你自己给出了答案,但你没有应用它。试试:
plot 'a.dat' lc rgb 0xaaff0000 t 'A','b.dat' lc rgb 0xaa00ff00 t 'B'