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.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to