I am trying to embed a matplotlib graph that updates every second into a PyQt GUI main window.
In my program I call an update function every second using thread
thread
if you are creating a new figure for every time this is quite common.
matplotlib do not free the figures you create, unless you ask it, somethink like:
pylab.close()
see How can I release memory after creating matplotlib figures