gnuplot:图例被隐藏在数据后面 [英] gnuplot: legend gets hidden behind data

查看:57
本文介绍了gnuplot:图例被隐藏在数据后面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是gnuplot的新手,在绘制堆积的直方图时,我发现图例隐藏在数据的后面.

I am new to gnuplot and while plotting stacked histogram, I find that legend gets hidden behind the data.

是否存在将图例放在数据上方的方法?非常感谢你的帮助.我目前正在使用外部底部的设置键将图例放置在外部,但这不是我想要的最佳解决方案.

Is there a method to put the legend above the data? Thanks a lot for your help. I am currently using set key outside bottom to place legend outside, but that is not the best solution I would like.

推荐答案

最新版本允许将图例的背景设置为白色:

Recent versions allow to make the background of the legend white:

set key opaque

这只是在图例中添加了白色背景,因此它出现在所有图形的顶部.在此帖子中找到了答案.

This simply adds a white background to the legend so it appears on top of all graphs. Found the answer in this Post.

这篇关于gnuplot:图例被隐藏在数据后面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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