threading on plot - renders the plot in a stand-alone window