带有超文本点的gnuplot行? [英] gnuplot lines with hypertext points?

查看:29
本文介绍了带有超文本点的gnuplot行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试获得一个线点图,其中的点是超文本.到目前为止,我已经设法使线点起作用,但是没有超文本,并且已经将其分成两部分重叠,其中第一条线带有超文本点.当第二个有效"时,它会为这些点产生一个额外的键.理想情况下,我希望每条线和点的组合都使用线点键输入,而不是线键和点键.

I'm trying to get a linespoints plot with the points being hypertext. So far, I've managed to get linespoints working but without hypertext and I've split it into two plots overlaid, one with lines one with hypertext points. While the second "works", it results in an extra key for the points. Ideally, I want linespoints key entries for each line and points combination, not a line key and a points key.

推荐答案

可能有些作弊.通常,只有同时设置了points时,才会显示hypertext.由于超文本有效的区域取决于点的大小,因此可以绘制所有点with linespoints,然后在绘制标签时使用透明点:

That may be possible with a bit cheating. Usually the hypertext is shown only if also points is set. Since the area which is active for the hypertext depends on the point size, you can draw all points with linespoints and then use a transparent point when plotting the labels:

set samples 11
set xrange [0:10]
plot '+' using 1:1:1 with linespoints pt 7 ps var title 'mytitle',\
     '+' using 1:1:(sprintf('(%d,%d)', $1, $1)):1 with labels hypertext point pt 7 lc rgb '#ff000000' notitle

其他用户注意事项:hypertext选项是在5.0版中引入的.

Note for other users: The hypertext option was introduced in version 5.0.

这篇关于带有超文本点的gnuplot行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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