直方图条隐藏技巧 [英] Histogram bar hiding tics

查看:109
本文介绍了直方图条隐藏技巧的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在gnuplot中绘制直方图,并且条形图最终覆盖了x轴上的tic,就像这样:

I'm plotting a histogram in gnuplot and the bars end up covering the tics in the x axis, like so:

有什么办法可以防止这种情况?

Is there any way to prevent this?

推荐答案

我不确定这是否行得通,但是您可以尝试以下方法:

I don't know for sure if this will work or not, but you can try this:

 set grid noxtics noytics noztics front

通过阅读文档,看起来这将在绘制时将tic推到对象堆栈的顶部(即,它们将在使它们可见的条之后被绘制(我认为) ).另一种选择是在fillstyle中使用透明度,但这可能无法使用,具体取决于您的终端(并且可能不希望如此).

From reading the documentation, it looks like that will push the tics to the top of the stack of objects when plotting (i.e. they'll get plotted after the bars making them visible (I think)). Another option is to use transparency in your fillstyle, but that may not work depending on your terminal (and it may not be desirable).

这篇关于直方图条隐藏技巧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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