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

Method set_plot_data

mavsim_python/plotter/plotter.py:78–83  ·  view source on GitHub ↗
(self,plot_id,data_label,xdata,ydata)

Source from the content-addressed store, hash-verified

76 self._ydata_list[plot_index][dataset_index] = self._ydata_list[plot_index][dataset_index][start_index:]
77
78 def set_plot_data(self,plot_id,data_label,xdata,ydata):
79 plot_index = self._plot_dict[plot_id]
80 dataset_index = self._data_line_labels[plot_index][data_label]
81 self._xdata_list[plot_index][dataset_index] = xdata
82 self._ydata_list[plot_index][dataset_index] = ydata
83 self._window_length_list[plot_index] = len(self._xdata_list[plot_index][dataset_index])
84
85 def set_window_length(self, plot_id, window_length):
86 self._window_length_list[plot_id] = window_length

Callers 1

test_plotter.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected