updated interface on dy_plots.cc