If it's just the yaxis you want to change, an easy way is to determine which ticks you want:
tickpos = [0,1,4,6]
py.yticks(tickpos,tickpos)
will put ticks at 0, 1, 4, and 6. More generally
py.yticks([0,1,2,3], ['zero', 1, 'two', 3.0])
will put the label of the second list at the location in the first list. If the label is going to be the yvalue, it's a good idea to use the py.yticks(tickpos,tickpos)
version just to make sure that whenever you change the locations of the ticks, the labels get the same change.
More generally though, Kington's answer will let you tell pylab just integers for the y axis, but let it choose where the ticks go.