def plot_diff(self, graphing_library='<STR_LIT>'):
diff_datasource = sorted(set(self.reports[<NUM_LIT:0>].datasource) & set(self.reports[<NUM_LIT:1>].datasource))<EOL>graphed = False<EOL>for submetric in diff_datasource:<EOL><INDENT>baseline_csv = naarad.utils.get_default_csv(self.reports[<NUM_LIT:0>].local_location, (submetric + '<STR_LIT>'))<EOL>current_csv = naarad.utils.get_default_csv(self.reports[<NUM_LIT:1>].local_location, (submetric + '<STR_LIT>'))<EOL>if (not (naarad.utils.is_valid_file(baseline_csv) & naarad.utils.is_valid_file(current_csv))):<EOL><INDENT>continue<EOL><DEDENT>baseline_plot = PD(input_csv=baseline_csv, csv_column=<NUM_LIT:1>, series_name=submetric, y_label=submetric, precision=None, graph_height=<NUM_LIT>, graph_width=<NUM_LIT>,<EOL>graph_type='<STR_LIT>', plot_label='<STR_LIT>', x_label='<STR_LIT>')<EOL>current_plot = PD(input_csv=current_csv, csv_column=<NUM_LIT:1>, series_name=submetric, y_label=submetric, precision=None, graph_height=<NUM_LIT>, graph_width=<NUM_LIT>,<EOL>graph_type='<STR_LIT>', plot_label='<STR_LIT>', x_label='<STR_LIT>')<EOL>graphed, div_file = Diff.graphing_modules[graphing_library].graph_data_on_the_same_graph([baseline_plot, current_plot],<EOL>os.path.join(self.output_directory, self.resource_path),<EOL>self.resource_path, (submetric + '<STR_LIT>'))<EOL>if graphed:<EOL><INDENT>self.plot_files.append(div_file)<EOL><DEDENT><DEDENT>return True<EOL>
Generate CDF diff plots of the submetrics