figure,thresholds=_plot_dir(cmcs_dev,fars,args.rank,colors,args.legends,args.title[0]ifargs.titleisnotNoneelse"DIR curve for development set",args.legend_font_size,args.legend_position)
pdf.savefig(figure,bbox_inches='tight')
pdf.savefig(_plot_dir(cmcs_dev,fars,args.rank,colors,args.legends,args.title[0]ifargs.titleisnotNoneelse"DIR curve for development set",args.legend_font_size,args.legend_position),bbox_inches='tight')
ifargs.eval_files:
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,thresholds=thresholds)[0],bbox_inches='tight')
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")