On this page
matplotlib.axes.Axes.set_position
Axes.set_position(pos, which='both')- 
    
Set the axes position
The expected shape of
posis:pos = [left, bottom, width, height]in relative 0,1 coords, or pos can be a
BboxThere are two position variables: one which is ultimately used, but which may be modified by
apply_aspect(), and a second which is the starting point forapply_aspect().- Optional keyword arguments:
 - 
      
which
value description ‘active’ to change the first ‘original’ to change the second ‘both’ to change both  
 
© 2012–2017 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
 http://matplotlib.org/2.0.2/api/_as_gen/matplotlib.axes.Axes.set_position.html