So lets say I have a dictionary as follows:
dictionary = {'a': [1,2,3], 'b':[4,2,5], 'c':[5,9,1]}
So the way I would do a single plot of all 'a','b','c' lines would be (assuming figure has already been declared, etc.):
#half-setup for animation
lines = []
mass = list(dictionary.keys()) #I know this is redundant but my 'mass' variable serves another purpose in my actual program
for i in range(len(mass)): #create a list of line objects with zero entries
a, = ax.plot([], [])
lines.append(a)
#single plot
for i in dictionary:
index = np.array(locations[i]) #convert to numpy
ax.plot(index[:,0],index[:,1],index[:,2])
plt.show()
So how can I turn this into an animated 3D graph? I have already tried plt.ion() and plt.pause() but the animation is painfully slow.