| 45 | self._num_plots += 1 |
| 46 | |
| 47 | def create_data_set(self, plot_id, data_label, data_color=(255,0,0), data_thickness=15): #add func to change line thickenss |
| 48 | plot_index = self._plot_dict[plot_id] |
| 49 | pen = pg.mkPen(color=data_color) |
| 50 | data_line = self._layout.itemAt(plot_index).widget().plot([], [], |
| 51 | name=data_label, width=data_thickness, pen=pen) |
| 52 | self._data_lines_list[plot_index].append(data_line) |
| 53 | self._xdata_list[plot_index].append([]) |
| 54 | self._ydata_list[plot_index].append([]) |
| 55 | self._data_line_labels[plot_index][data_label] = len(self._data_lines_list[plot_index]) - 1 |
| 56 | |
| 57 | def add_data_point(self, plot_id, data_label, xvalue, yvalue): |
| 58 | plot_index = self._plot_dict[plot_id] |