Refactored the plotting so that structures can return the lines to draw them, as individual lines or line collections, and re-implement the top-level get_leaves accordingly. Also changed the definition of height to match @ChrisBeaumont's definition and removed merge_level.