我想在gnuplot中一起绘制两个数据源:一个来自数据文件,使用文本作为x数据(带有xticlabel和错误栏),另一个恒定。
我不希望xticlabel到达图形的两边,所以我使用“ set offset”。但是,我 do 希望常数到达图的两边。
示例gnuplot脚本:
set terminal pngcairo size 500, 500
file = 'data.txt'
set output 'plot.png'
set xtics rotate by -45
set yrange [0:1]
set offset 0.5,0.5,0,0
plot file using 0:2:3:xticlabels(1) with yerrorbars notitle,\
0.5 notitle
以及相关的data.txt文件:
"Europe" 0.4 0.03
"North America" 0.8 0.05
"South America" 0.1 0.08
"Asia" 0.7 0.01
"Africa" 0.9 0.03
"Australia" 0.2 0.03
我该如何实现?
答案 0 :(得分:1)
您可以将常数绘制为无头箭头:
set arrow from graph 0, first 0.5 to graph 1, first 0.5 nohead lt 1
答案 1 :(得分:1)
如果只是正确设置call az storage blob upload-batch
--source "d:\a\r1\a/_ClientWeb-Build-CI/ShellArtifact/out/build"
--destination "$web"
--account-key call az storage account keys list -g CustomersV2 -n *****to --query [0].value -o tsv
--account-name *****to
ERROR: az: error: unrecognized arguments: az storage account keys list -g CustomersV2 -n *****to
call az storage blob upload-batch
--source "d:\a\r1\a/_ClientWeb-Build-CI/ShellArtifact/out/build"
--destination "$web"
--account-key az storage account keys list -g CustomersV2 -n *****to --query [0].value -o tsv
--account-name *****to
ERROR: az: error: unrecognized arguments: storage account keys list -g CustomersV2 -n *****to
call az storage blob upload-batch --source "d:\a\r1\a/_ClientWeb-Build-CI/ShellArtifact/out/build" --destination "$web" --account-key (az storage account keys list -g CustomersV2 -n *****to --query [0].value -o tsv) --account-name *****to
--account-name was unexpected at this time.
,则可以实现相同的结果。
在您使用az storage account keys list -g
的情况下,欧洲= 0,澳大利亚= 5。
因此,只需设置xrange[]
。如果项目数(此处为6)事先未知,则可以通过xticlabels(1)
或xrange[-0.5:5.5]
和|$Data|
来获取。
代码:
stats $Data
结果: