gnuplot:在键中同时显示中心线和误差带 [英] gnuplot: showing both center line and error band in a key

查看:58
本文介绍了gnuplot:在键中同时显示中心线和误差带的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过使用以下命令来绘制一个带有错误带的数据集,它为每个数据集创建单独的键(一个键用于频段,一个键用于中心线),但我希望这些键彼此显示在一个键中

I want to plot a data set with it's error band by using the following commands, it creates separate keys for each of them (one for band and one for central line) but I want these keys shown in one key on each other.

请帮助我

set termoption enhanced
set xlabel '{/Symbol \326}s [TeV]' 
set ylabel '{/Symbol s}(PP{/Symbol \256}Htt) [pb]'
set style fill transparent solid 0.2 noborder
set key left nobox
plot [5:16] 'C:\Users\user\Desktop\tth-with-ttPDFs-nQCDscale.dat' using 1:3:4 with filledcurves title 
'uncertainty',     '' using 1:2 with lp lt 1 pt 7 ps 0 lw 2 title 'using FitC'

推荐答案

set key spacing 0
set key left reverse
plot 'data' using 1:3:4 with filledcurves title '   ', \
         '' using 1:2 with lp lt 1 pt 7 ps 0 lw 2 title 'Fit and Uncertainty'

请注意,第一个标题由一串空格组成.

Note that the first title consists of a string of spaces.

这篇关于gnuplot:在键中同时显示中心线和误差带的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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