I want to plot the intensity change of an image as a linear graph like this: As you can see in the code, I have x,y and data with image intensity for each pixel in an image.