factor out bdt plotting into plot-bdt