def output_pdf_plot(core_result, spid, models, options, fit_results):
<EOL>hist_bins = <NUM_LIT:11><EOL>emp_hist, edges = np.histogram(core_result['<STR_LIT:y>'].values, hist_bins,<EOL>normed=True)<EOL>x = (np.array(edges[:-<NUM_LIT:1>]) + np.array(edges[<NUM_LIT:1>:])) / <NUM_LIT:2><EOL>df = pd.DataFrame({'<STR_LIT:x>': x, '<STR_LIT>': emp_hist})<EOL>def calc_func(model, df, shapes):<EOL><INDENT>try:<EOL><INDENT>return eval("<STR_LIT>" % model)<EOL><DEDENT>except:<EOL><INDENT>return eval("<STR_LIT>" % model)<EOL><DEDENT><DEDENT>plot_exec_str = "<STR_LIT>"<EOL>_save_table_and_plot(spid, models, options, fit_results, '<STR_LIT>',<EOL>df, calc_func, plot_exec_str)<EOL>
Function for plotting pdf/pmf