working console_plot