I plot an image, which is shown below. According to the X axis scale, the legth of red line is 0.5. And the black line is the same length as red line. So, the total length of this two lines is 1. If you look the the X axis, the total length of the two line is close to 2.5, which does not match the X axis dimension.
My question is that can we change the dimension of the piexl so that pixel size of an image match the axis scale.