don't rely on repl_show to display plots, so the functions work in scripts