import matplotlib.pyplot as plt
plt.plot(x, y, 'b-')
plot.legend ( ... ) 'put legend on left, i do not have the actual code with me.
How can I resize the plot window to show the legend on the left side?. Also, I like for program Not to stop when calling

There isn't much room to the left, but this will work:

from pylab import *

axes([0.1, 0.1, 0.71, 0.8])
plot([0,1], [0,1], 'r-', label="line 1")
plot([0,1], [1,0.5], 'b-', label="line 2")

# legend(loc=(x, y))
legend(loc=(-0.22, 0.45))

title("legend outside the plot area")


You can also use module threading to keep your program running.