I make numeric simulations and have problems with my plots... My simulation area is 6x35µm
with a resolution of 640x1024px
.
When I want to plot my simulation data using imshow
, and set the aspect ratio: aspect=6/35
, then the height of the plot is correct but it is much to long? What am I doing wrong?
In the picture:
top
: simulation mask, all plots should have the same aspect ratio.
middle
: aspect is set to manually set to the aspect of the simulation mask (6/35)
bottom
: aspect is set to 1
Here is my code
fig = pl.figure(num=None, figsize=(10, 10))
ax = fig.add_subplot(1,1,1)
img = ax.imshow(data, aspect=6./35)