Hello! I try to use a background image in my plot:
import matplotlib.pyplot as plt im = plt.imread("WTunnel.png") plt.xlim([-3,4]) plt.ylim([-0.01,0.05]) plt.plot(some stuff) plt.imshow(im, aspect="auto", extent=(-5, 4, -0.01, 0.05)) This works more or less. As far as I understand the extent argument works as scaling factor. Is there a way to move the background picture? I need to exactly set the x position since the background image is associated with the x data from the plots. The origin argument seems to be promising, but it accepts only [None|‘upper’|‘lower’]. What is the best way to handle such a picture? Background: The data is pressure measurements over x. The background image shows the geometric features of the measured object. Exact x_0 and dx is crucial, y values of the picture just need to look good ;-) Thanks! Florian ------------------------------------------------------------------------------ Own the Future-Intel(R) Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition, cash, and the chance to get your game on Steam. $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2 _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users