BUG: fix plotting of dup indexed objects
Merge pull request #4492 from cpcloud/plotting-length-fix

BUG: fix plotting of dup indexed objects