formation of σ molecular orbital in H2
You are mostly right. The horizontal axis represents the distance from the nucleus. The maximum of the electron density of 1s orbitals is in fact at the nucleus. This is not impossible, remember that electron density can be interpreted as the probability that an appropriate experiment will detect the electron there. In fact, electron density "at" the nucleus is one of the major ways NMR spectroscopy works.