Modifying Grid Size


I wanted to plot a graph with a grid background and an x axis ranging from 0 -16 and a y axis ranging from 0 -16. I used the following code:

from pylab import*

xlabel(‘time (s)’)
ylabel(‘voltage (mV)’)
title(‘About as simple as it gets, folks’)

However, both axes were scaled in intervals of 5 automatically, ranging from -15 - 15. Although the axes began and end at -16 & 16 respectively, the number 16 or -16 is not shown. How do I resacle the axis to ensure 16 & -16 are shown and the grid is not cut off at each axes? How do I control the interval size on each scale to change it from an interval size of 5 to lets say 2? Is it possible to control grid size?