只需设置两个值即可将您不想看到的行定义为NaN(非 数字)。Matplotlib将自动隐藏两个值之间的线。
Check out this example :http://matplotlib.org/examples/pylab_examples/nan_test.html
Python: Matplotlib避免绘制间隙
只需设置两个值即可将您不想看到的行定义为NaN(非 数字)。Matplotlib将自动隐藏两个值之间的线。
Check out this example :http://matplotlib.org/examples/pylab_examples/nan_test.html