Write plots to a temporary file and open it when there are no other display methods. Fixes #125.