From: Jerzy K. <jer...@un...> - 2012-02-16 01:27:53
|
Le 16/02/2012 02:20, Alexa Villaume a écrit : > Try using 'xticks' and 'yticks', those commands let you define the > location and label fo your tick marks. > This *alone* will not do, the image might be scaled badly. Add extent. Try this: fig = plt.figure() frame = plt.subplot(111) im=frame.imshow(data,extent=[0,3400,0,3400]) plt.xticks([0,3400]); plt.yticks([0,3400]) plt.xlabel('X (nm)') plt.ylabel('Y (nm)') plt.colorbar(im) plt.show() == Jerzy Karczmarczuk Caen, France |