在Gnuplot中可以设置透明性吗? [英] Variable transparency is possible in Gnuplot?

查看:146
本文介绍了在Gnuplot中可以设置透明性吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Gnuplot中绘制一个实心圆,但是透明度随距圆心的距离而变化,即透明度渐变(靠近中心处实心,靠近圆半径处实心).

I want to plot a filled circle in Gnuplot, but with transparency changing with the distance to the center of the circle, i.e. a transparency gradient (solid near to the center, and transparent near to the radius of circle).

在Gnuplot中有什么方法吗?

Is there any way of doing this in Gnuplot?

提前谢谢!

推荐答案

尝试一下:

set xrange [0:10]
set yrange [0:10]
do for [i=1:100] {
set style fill transparent solid i/100. noborder
set object circle at 5,5 radius 1.-i/100. fc rgb 'blue'
}
plot -1

并非所有终端都支持透明性;参见help transparent.我使用终端x11做到了这一点.

Not all terminals support transparency; see help transparent. I made this with the terminal x11.

这篇关于在Gnuplot中可以设置透明性吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆