fitting generalization figure