The structure of the Doctrine of the Mean in diagrams