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.
plt.show()
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 plot.show().

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")

show()

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.