LineCollection animation
问题 For the following code (MWE), if the line ax.set_axis_off() is commented out, then the animation shows nothing. Otherwise, the animation works as expected. My question is: why? from itertools import tee import numpy as np import matplotlib matplotlib.use('Agg') # noqa from matplotlib.animation import FuncAnimation, FFMpegWriter from matplotlib.collections import LineCollection from matplotlib.colors import ListedColormap, BoundaryNorm import matplotlib.pyplot as plt def pairwise(iterable): "s