Gnuplot减少y轴范围的频率

时间:2016-07-01 07:40:03

标签: gnuplot

你好,我有一个关于如何降低y轴范围频率的问题。我有以下情节 enter image description here

之前我有[0-90]的y范围,我在这个froum的一些好人评论的帮助下以某种方式减少了它。现在我有一个问题,在y范围内有太多的值,看起来有点笨拙。那么,有没有办法降低y范围的频率?

2 个答案:

答案 0 :(得分:1)

您必须使用set ytics例如

set ytics <start>, <incr> {,<end>}

set ytics <incr>

例如。

set ytics 76, 2

set ytics 2

查看ytics / xtics类型

的所有功能
help xtics

答案 1 :(得分:1)

set style line 1 lc rgb '#83b300' pt 4 pi 500
set style line 2 lc rgb '#d66c00' pt 6 pi 700
set style line 3 lc rgb '#179c7d' pt 2 pi 200
#
set pointsize 0.5
#
set xlabel '$Time [s]$'
set xrange [ 0:60 ]
set xtics border out 10
set key off
#
set format '$%g$'
set multiplot layout 1,2
set title 'T\_Bottom\_Fz'
unset xlabel
unset label 1
set ylabel '{[kN]}' offset -0.2
set format y '$%g$'
set ytics 0.2*(GPVAL_Y_MAX-GPVAL_Y_MIN)
set lmargin at screen 0.1
set rmargin at screen 0.5
set label 1 '$\cdot 10^{-14}$' at graph -0.02,1.07
plot filename1 every ::3  using 1:($58/1e-14) ls 1title '$Bladed$' with linespoints, filename2 using 1:($58/1e-14) ls 2title '$FAST$' with linespoints, filename3 using 1:($58/1e-14) ls 3title '$OWLib$' with linespoints
#
set title 'T\_Bottom\_Mx'
unset xlabel
unset label 1
set ylabel '{[kNm]}' offset -0.5
set format y '$%g$'
set lmargin at screen 0.6
set rmargin at screen 0.99
plot filename1 every ::3  using 1:59 ls 1title '$Bladed$' with linespoints, filename2 every ::100 using 1:59 ls 2title '$FAST$' with linespoints, filename3 every ::200 using 1:59 ls 3title '$OWLib$' with linespoints
#
unset multiplot
unset output
reset