Fix compatibility with matplotlib-3.5.0
This PR fixes a couple of instances of assert ax.lines == []
, which doesn't work any more as of matplotlib-3.5.0b1. This is easy fixed by comparing only the lengths of the objects, which is independently defined for the ArtistList
object.