MCPcopy Create free account
hub / github.com/byu-magicc/mavsim_public / create_data_set

Method create_data_set

mavsim_python/plotter/plotter.py:47–55  ·  view source on GitHub ↗
(self, plot_id, data_label, data_color=(255,0,0), data_thickness=15)

Source from the content-addressed store, hash-verified

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]

Callers 1

test_plotter.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected