Reputation: 271
Hello I have a question regarding how to reduce the frequency of y axis range. I have the following plot
Earlier I have my y range from [0-90] and I somehow reduced it with the help of some nice people comments in this froum. Now I have an issue with too many values in the y range which looks a bit clumsy. So, Is there any possible way to reduce the frequency of the y range?
Upvotes: 2
Views: 1561
Reputation: 271
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
Upvotes: 1
Reputation: 2484
You have to use set ytics
eg.
set ytics <start>, <incr> {,<end>}
or
set ytics <incr>
eg.
set ytics 76, 2
or
set ytics 2
To see all the features of ytics
/xtics
type
help xtics
Upvotes: 1