(self)
| 737 | ) |
| 738 | |
| 739 | def plot_multi_exp_data(self): |
| 740 | while len(self.plot_exp_list): |
| 741 | self.plot_exp_list.pop().remove() |
| 742 | |
| 743 | color_n = get_color_name() |
| 744 | |
| 745 | self.max_v = 1.0 |
| 746 | m = 0 |
| 747 | for k, v in self.io_model.data_sets.items(): |
| 748 | if v.selected_for_preview: |
| 749 | data_arr = np.asarray(v.data) |
| 750 | # Truncate the array (1D spectrum) |
| 751 | data_arr = data_arr[0 : self.number_pts_to_show] |
| 752 | self.max_v = np.max([self.max_v, np.max(data_arr[self.limit_cut : -self.limit_cut])]) |
| 753 | |
| 754 | x_v = ( |
| 755 | self.param_model.param_new["e_offset"]["value"] |
| 756 | + np.arange(len(data_arr)) * self.param_model.param_new["e_linear"]["value"] |
| 757 | + np.arange(len(data_arr)) ** 2 * self.param_model.param_new["e_quadratic"]["value"] |
| 758 | ) |
| 759 | |
| 760 | (plot_exp_obj,) = self._ax.plot( |
| 761 | x_v, |
| 762 | data_arr, |
| 763 | color=color_n[m], |
| 764 | label=v.filename.split(".")[0], |
| 765 | linestyle=self.plot_style["experiment"]["linestyle"], |
| 766 | marker=self.plot_style["experiment"]["marker"], |
| 767 | ) |
| 768 | self.plot_exp_list.append(plot_exp_obj) |
| 769 | m += 1 |
| 770 | |
| 771 | self.plot_selected_energy_range_original() |
| 772 | |
| 773 | self._update_ylimit() |
| 774 | self.log_linear_plot() |
| 775 | self._update_canvas() |
| 776 | |
| 777 | def plot_emission_line(self): |
| 778 | """ |
nothing calls this directly
no test coverage detected