title: Zoom an inline 3D matplotlib figure *without* using the mouse?
body: <p><a href="https://stackoverflow.com/questions/12904912/how-to-set-camera-position-for-3d-plots-using-python-matplotlib">This question</a> explains how to change the "camera position" of a 3D plot in matplotlib by specifying the elevation and azimuth angles. <code>ax.view_init(elev=10,azim=20)</code>, for example.   </p>
  
  <p><strong>Is there a similar way to specify the <em>zoom</em> of the figure numerically -- i.e. without using the mouse?</strong></p>
  
  <p>The only relevant question I could find is <a href="https://stackoverflow.com/questions/10655217/ipython-notebook-pylab-inline-zooming-of-a-plot">this one</a>, but the accepted answer to that involves installing another library, which then also requires using the mouse to zoom. </p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Just to be clear, I'm not talking about changing the figure size (using <code>fig.set_size_inches()</code> or similar). The figure size is fine; the problem is that the plotted stuff only takes up a small part of the figure:</p>
  
  <p><img src="https://i.imgur.com/iKLS8rP.png" alt="image"></p>