The histogram doesn't resize, and there are some hardcoded numbers that ought to be linked so that they don't go out of sync, but this is basically what I wanted.