def set_yticks(start, step, axes="<STR_LIT>"):
if axes=="<STR_LIT>": axes = _pylab.gca()<EOL>xposition = axes.yaxis.get_ticklabels()[<NUM_LIT:0>].get_position()[<NUM_LIT:0>]<EOL>ymin, ymax = axes.get_ylim()<EOL>nstart = int(_pylab.floor((ymin-start)/step))<EOL>nstop  = int(_pylab.ceil((ymax-start)/step))<EOL>ticks = []<EOL>for n in range(nstart,nstop+<NUM_LIT:1>): ticks.append(start+n*step)<EOL>axes.set_yticks(ticks)<EOL>for t in axes.yaxis.get_ticklabels():<EOL><INDENT>x, y = t.get_position()<EOL>t.set_position((xposition, y))<EOL><DEDENT>_pylab.draw()<EOL>
This will generate a tick array and apply said array to the axis