The linearity performance of 2D Multi-Wire Proportional Chambers (MWPCs) detector across the anode wires is modulated by the discrete anode wires. A MWPCs dectector with the 2 mm anode wire spacing was developed to study the anode wire modulation effect. The 2D lineartity performance was measured with a 55Fe source which was moved by a electric mobile platform. The experimental results show that the deviation of the measured position depends upon the incident position in the axis across the anode wires and the curve between the measured position and the incident position is consistent with the sine function whose period is equal to the anode wire spacing. A correction method of the measured position across the anode wire direction was obtained by fitting the curve between the measured position and the incident position. The non-linearity of the measured position across the anode wire direction is reduced about 0.085% and the imaging capability is obviously improved after the data is modified by the correction method.