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

Method set_plot_data

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

Source from the content-addressed store, hash-verified

82 self._ydata_list[plot_index][dataset_index] = self._ydata_list[plot_index][dataset_index][start_index:]
83
84 def set_plot_data(self,plot_id,data_label,xdata,ydata):
85 plot_index = self._plot_dict[plot_id]
86 dataset_index = self._data_line_labels[plot_index][data_label]
87 self._xdata_list[plot_index][dataset_index] = xdata
88 self._ydata_list[plot_index][dataset_index] = ydata
89 self._window_length_list[plot_index] = len(self._xdata_list[plot_index][dataset_index])
90
91 def set_window_length(self, plot_id, window_length):
92 self._window_length_list[plot_id] = window_length

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected