def test_update_imshow(): plt.clf() a = None for i in range(100): a = mpl_utils.plot_or_update(a, plt.imshow, [[0, 0.02*i], [1, 2]], interpolation='nearest')
def test_update_plot(): plt.clf() a = None for i in range(100): a = mpl_utils.plot_or_update(a, plt.plot, [1, 2, 3, 4, 5, 0.04*i])
def test_update_axhline(): plt.clf() a = None for i in range(100): a = mpl_utils.plot_or_update(a, plt.axhline, 0.01*i)
def _update_vline(self, frame_num=None): x = self.get_frame_time(frame_num) self.time_line = plot_or_update(self.time_line, plt.axvline, x, color='k')
def mpl_imshow(self, *args, **kwds): self.mpl_image = plot_or_update(self.mpl_image, plt.imshow, *args, **kwds)
def _update_vline(self, frame_num=None): x = self.get_frame_time(frame_num) self.time_line = plot_or_update(self.time_line, plt.axvline, x, color="k")