mpl plot earth bugfix (from old refactor)
rewrite buckets for performance