## [Matplotlib-users] Modifying Grid Size

 [Matplotlib-users] Modifying Grid Size From: J Makem - 2007-07-20 20:43:42 Attachments: Message as HTML ```Hi, 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') grid(True) axis([-16,16,-16,16]) show() 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? Jonathan. ```

 [Matplotlib-users] Modifying Grid Size From: J Makem - 2007-07-20 20:43:42 Attachments: Message as HTML ```Hi, 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') grid(True) axis([-16,16,-16,16]) show() 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? Jonathan. ```