Search code examples
plotgnuplot

adjusting steps on y-axis on Gnuplot


I need to adjust the steps on the y-axis on Gnuplot, however, I don't succeed to do this,

NOTE that I don't want to use "logscale", so I need to just have the numbers appropriate to the x-axis values and I don't want too many steps on the y-axis to show up on the y-axis, how can I do this?

here is the result I want to achieve,

The image result I wish:

enter image description here

I really appreciate any help.


Solution

  • For the sake of not letting this (basic) question appear unanswered:

    Please check the manual (before asking on SO ;-). You can also find it if you type help xtics.

    Syntax: 
    
          set xtics {axis | border} {{no}mirror}
                    {in | out} {scale {default | <major> {,<minor>}}}
                    {{no}rotate {by <ang>}} {offset <offset> | nooffset}
                    {left | right | center | autojustify}
                    {add}
                    {  autofreq
                     | <incr>
                     | <start>, <incr> {,<end>}
                     | ({"<label>"} <pos> {<level>} {,{"<label>"}...) }
                    {format "formatstring"} {font "name{,<size>}"} {{no}enhanced}
                    { numeric | timedate | geographic }
                    {{no}logscale}
                    { rangelimited }
                    { textcolor <colorspec> }