This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
import mpl_toolkits.mplot3d.axes3d as p3 | |
import matplotlib.animation as animation | |
import pandas as pd | |
from sys import exit | |
def update_lines(num, data, line): | |
# NOTE: there is no .set_data() for 3 dim data... | |
line.set_data(data[0:2, :num]) | |
line.set_3d_properties(data[2, :num]) |