gpt4 book ai didi

gnuplot - 如何用透明点制作散点图

转载 作者:行者123 更新时间:2023-12-03 21:23:37 27 4
gpt4 key购买 nike

enter image description here

如何像使用gnuplot的图片一样绘制具有部分透明散射点的图像?问题是我不知道如何将点设置为透明。

最佳答案

试试这个:

set style fill  transparent solid 0.35 noborder
set style circle radius 0.02
plot 'test' u 1:2 with circles lc rgb "blue", \
'' u 1:2 every 100 w circles lc rgb "red" fs solid 1.0 border lt -1

哪个输出
enter image description here
如您所见,您可以为每个数据集指定是否使用透明度和使用哪种颜色。
如果数据由两个值(圆的x和y位置)组成,则必须通过 set style circle ...指定圆的半径。如果数据有三行,则可以使用第三个值为每个数据点指定圆的半径。
您可以使用透明度级别,范围从0(完全透明)到1(不透明)。

关于gnuplot - 如何用透明点制作散点图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34532568/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com