Exemplo n.º 1
0
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')
Exemplo n.º 2
0
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])
Exemplo n.º 3
0
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)   
Exemplo n.º 4
0
 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')
Exemplo n.º 5
0
 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")
 def mpl_imshow(self, *args, **kwds):
     self.mpl_image = plot_or_update(self.mpl_image, plt.imshow, *args, **kwds)