user3019217
user3019217

Reputation: 335

Define Matlab Scatter Plot scale

I have the following scatter graph: http://i.imgur.com/j5Yca86.png

As you can see by the figure, I've defined a graph where each size of the grid is 5. I guess the grid follows the interval of the axis itself but I haven't quite figured out how change that (for example with a size 1), any help would be greatly appreciated!

Upvotes: 0

Views: 302

Answers (1)

danny
danny

Reputation: 306

The grid spacing is determined by the tick marks on the axes. Set the properties 'XTick' and 'YTick' of the axes to control the spacing of the grid, as follows:

set(gca, 'XTick', [50:75])
set(gca, 'YTick', [52:2:75])

Upvotes: 2

Related Questions