render a plot in a windows