A comparison of positions and sizes of sources of centimeter and X-ray bursts