How can I set the aspect ratio?

I'm trying to make a square plot (using imshow), i.e. aspect ratio of 1:1, but I can't. None of these work: import matplotlib.pyplot as plt ax = fig.add_subplot(111,aspect='equal') ax = fig.add_s...