Advertisement
Guest User

Untitled

a guest
Jul 12th, 2019
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.49 KB | None | 0 0
  1. for i in range(1):
  2.  
  3.     import matplotlib.pyplot as plt
  4.     import matplotlib.animation as animation
  5.     import pylab
  6.     from tkinter import *
  7.     import pyaudio
  8.     import numpy as np
  9.  
  10.     fig=plt.figure()
  11.     ax1=fig.add_subplot(1,1,1)
  12.     def animate(i):
  13.         bb=[]
  14.         x_0=0
  15.         y_0=0
  16.         x_1=0
  17.         y_1=1
  18.         bb.append([x_0,x_1])
  19.         bb.append([y_0,y_1])
  20.         ax1.clear()
  21.         animation1=ax1.plot(*bb,color='grey')
  22.         aay=pylab.xlim(-1,1)
  23.         aax=pylab.ylim(0,1)
  24.     ani=animation.FuncAnimation(fig,animate,interval=1)
  25.     plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement