Possible duplicate:
Logarithmic graph axis with matplotlib in python
I have a 50 * 1050 matrix in which size 50 represents frequency and 1050 times. I tried to build it using imshow and I get this image:

But I want to highlight lower frequencies, which means I need to use the logarithmic scale for the y scale. I searched a lot, but have not yet found an effective solution.
What I need exactly is that the first row of the matrix should occupy the largest percentage of the image, and as the rows increase, the width if the row they occupy in the image should decrease. Any suggestion?
source share