two lines matplotib animation [duplicate]
问题 This question already has an answer here : Matplotlib multiple animate multiple lines (1 answer) Closed 2 years ago . I'm trying to make an animated chart with two lines plotting x, y and x, z with animation in the same figure, but I'm not succeeding. Can you help me? import numpy as np import matplotlib.pyplot as plt import matplotlib.animation as animation x = np.arange(130, 190, 1) y = 97.928 * np.exp(- np.exp(- 0.1416 *( x - 146.1 ))) z = 96.9684 * np.exp(- np.exp(-0.1530*( x - 144.4)))