first pass at legend size calculation