Properties of Magnetic Neutral Line Gradients and Formation of Filaments