pdf.savefig(_plot_dir(cmcs_eval,fars,args.rank,colors,args.legends,args.title[1]ifargs.titleisnotNoneelse"DIR curve for evaluation set",args.legend_font_size,args.legend_position),bbox_inches='tight')
pdf.close()
exceptRuntimeErrorase:
raiseRuntimeError("During plotting of DIR curves, the following exception occured:\n%s")
raiseRuntimeError("During plotting of DIR curves, the following exception occured:\n%s"%e)