Merge pull request #4492 from cpcloud/plotting-length-fix

BUG: fix plotting of dup indexed objects
CLN: do not allow frozenset