title: Tick labels displaying outside axis limits
body: <p>Is there a way to automatically not display tick mark labels if they would protrude past the axis itself? For example, consider the following code</p>
  
  <pre><code>#!/usr/bin/python
  import pylab as P, numpy as N, math as M
  xvals=N.arange(-10,10,0.1)
  yvals=[ M.sin(x) for x in xvals ]
  P.plot( xvals, yvals )
  P.show()
  </code></pre>
  
  <p>See how the -10 and 10 labels on the x-axis poke out to the left and right of the plot? And similar for the -1.0 and 1.0 labels on the y-axis. Can I automatically suppress plotting these but retain the ones that do not go outside the plot limits?</p>