convert to plotting in background using a queue