I am trying to plot in Octave. How to specify the step size of the axis? For example, by default, the x-axis step size is 0.5 (0 --- 0.5 --- 1 --- 1.5 ---), I want to make it 0.1 and the axis axis step is 0.01.
This will change the step size on the x axis of the existing graph to 0.1:
xbounds = xlim() set(gca, 'xtick', xbounds(1):0.1:xbounds(2))
You can do the same for the y axis using ylim and 'ytick' .
ylim
'ytick'
You can resize x steps using the code below:
set(gca,'XTick,[0:0.1:10]);
To resize y steps, you can do the same:
set(gca,'YTick,[0:0.01:10]);