gnuplot-彩色的抽号 [英] gnuplot - Colored tic marks

查看:91
本文介绍了gnuplot-彩色的抽号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以让gnuplot为x和/或y轴上的井字标记着色?我正在使用一个背景png文件,该文件非常暗,我希望内部tic在其上显示为白色,而不是默认的黑色.

Is there any way to have gnuplot color the tic marks in the x and/or y axis? I'm using a background png file which is quite dark and I'd like the inner tics to show in white over it, not the default black.

推荐答案

tics似乎继承了border的颜色:

set style line 50 lt 1 lc rgb "red" lw 2
set border ls 50
plot sin(x)

tic标签通过ticstextcolor选项获得其颜色:

The tic labels get their color from the textcolor option of tics:

set tics textcolor rgb "red"

(字符串"white"也应该起作用,但是在我的演示中看起来不太好,因为我的背景是白色的.)

没有办法仅更改tic颜色.但是,如果需要,可以更改tic/border的颜色,然后在顶部添加新的边框:

There is no way to change just the tic-color. However, if you want, you can change the tic/border color and then add a new border on top:

set arrow from graph 0,graph 1 to graph 1,graph 1 nohead ls -1 lc rgb "black" front
set arrow from graph 1,graph 1 to graph 1,graph 0 nohead ls -1 lc rgb "black" front
set arrow from graph 1,graph 0 to graph 0,graph 0 nohead ls -1 lc rgb "black" front
set arrow from graph 0,graph 0 to graph 0,graph 1 nohead ls -1 lc rgb "black" front

这篇关于gnuplot-彩色的抽号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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