def __init__(self, t, u, show_plot=False):
SimulationInput.__init__(self)
self._t = t
self._T = t[-1]
self._u = u
self.scale = 1
if show_plot:
pw = pg.plot(title="InterpTrajectory")
pw.plot(self._t, self.__call__(time=self._t))
pw.plot([0, self._T], self.__call__(time=[0, self._T]), pen=None, symbolPen=pg.mkPen("g"))
pg.QtGui.QApplication.instance().exec_()
评论列表
文章目录