I'm not quite sure what you mean. If you want to control the position and size of your subtask, try using add_axes ([left, bottom, width, height]) . Below is a sample code, I set the border to black to make sure you see clearly:
import matplotlib.pyplot as plt fig = plt.figure(figsize=(6, 2.5)) ax = fig.add_axes([0.1, 0.18, 0.86, 0.75]) ax.plot([1, 2, 3, 9, 10], [0.85, 0.6, 0.5, 0.3, 0.32], 'b--', linewidth=2, label='Single Path') ax.plot([1, 2, 3, 9, 10], [1, 0.6, 0.5, 0.27, 0.3], 'r:', linewidth=2, label='QoS First') ax.legend(fancybox=True, shadow=True) ax.set_xlabel('Simulations: Flows per Second Varying') ax.set_ylabel('ACAR') ax.axis([1, 10, 0, 1]) ax.grid() plt.savefig('rm_wspace.png', edgecolor='k', dpi=300)
