Using high-speed shooting and shadow photography, the spatial structure of a pulsed discharge in a 1.5 mm long "pin(cathode)-plane" gap in nitrogen and argon in the pressure range from 0.25 to 2 atm was studied. It has been found that a spark discharge is realized in nitrogen and a diffuse form of discharge is realized in argon. For both cases, the presence of a microstructure of discharges in the studied pressure range was found, when the discharge is an aggregation of a large number of micron-diameter channels. It is shown that for each gas the dynamics of the discharge glow structure remains similar at different pressures. It has been established that the glow and microstructure of the discharge in nitrogen are similar to those in air. Keywords: spark discharge, diffuse discharge, microstructure, method of shadow photography, high-speed shooting.