Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/templates/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Gnuplot,如何添加没有刻度的网格?_Gnuplot - Fatal编程技术网

Gnuplot,如何添加没有刻度的网格?

Gnuplot,如何添加没有刻度的网格?,gnuplot,Gnuplot,我有点像: set grid xtics lt 0 lw 1 lc rgb "#a9a9a9" set grid ytics lt 0 lw 1 lc rgb "#a9a9a9" 或者不带“xtics”标签,也可以这样做,效果很好! 但如果我加上: unset xtics 然后网格也消失了:( 我怎么能只有一个网格,没有tics?如果你只想让tic标签消失,那么就使用设置格式: set format x "" set format y "" set grid plot x 如果您也不想要

我有点像:

set grid xtics lt 0 lw 1 lc rgb "#a9a9a9"
set grid ytics lt 0 lw 1 lc rgb "#a9a9a9"
或者不带“xtics”标签,也可以这样做,效果很好! 但如果我加上:

unset xtics
然后网格也消失了:(


我怎么能只有一个网格,没有tics?

如果你只想让tic标签消失,那么就使用
设置格式

set format x ""
set format y ""
set grid
plot x

如果您也不想要TIC,那么据我所知,您需要一个更复杂的脚本,可能使用迭代器和箭头,例如以下内容(您必须根据
xrange
yrange
以及您喜欢的箭头样式更改限制):


要隐藏主刻度,可以使用
将刻度设置为0

set grid
set tics scale 0
plot x

注意,如果有一天您还想使用小刻度并隐藏它们,则必须使用
设置刻度0,0.001

set grid
set tics scale 0
plot x