added np to plot_panel