0

我正在使用 xmgrace 的 Gracebat 以批处理模式生成条形图图像(基于 xvg 输入):

gracebat input.xvg -hdevice PNG -nosafe -printfile output.png -hardcopy -batch grace.bfile

这是我的批处理文件

s0 line type 0
s0 type BAR
s0 line color 4 # this does nothing
HARDCOPY DEVICE "PNG"
PAGE SIZE 800, 600
xaxis label char size 2.50000
yaxis label char size 2.50000
xaxis ticklabel char size 2.000000
yaxis ticklabel char size 2.000000

这是输出图像的示例: 在此处输入图像描述

它产生我需要的东西,除了条的颜色。批处理文件的哪个选项可用于为条设置蓝色背景(目前它是白色/透明)以及增加黑色轮廓的厚度?

4

1 回答 1

0

由于某些原因,条形图被 xmgrace 视为符号,这意味着您可以通过以下几行来完成您想要的操作:

s0 symbol linewidth 4
s0 symbol fill pattern 1
s0 symbol fill color 4

第一行使条变粗,最后两行改变背景颜色。

于 2020-10-24T08:53:53.697 回答