Possible Duplicate:
Logarithmic yscale in imshow
In my imshow view, I want the logarithmic scale in the y
. the answers like yscale('log')
is not my answer. any suggestion please?
Possible Duplicate:
Logarithmic yscale in imshow
In my imshow view, I want the logarithmic scale in the y
. the answers like yscale('log')
is not my answer. any suggestion please?
Do you mean you want the yaxis to be the "log scale" of the data your are plotting in the plot? The difficulty of doing this with imshow() is that the structure in y is fundamentally linear, that is, imshow just shows everything as it's structured in the dataset.
A hack would be to simply copy more data into the plot in such a way that the data reflects a log distribution, so the "lower values" are weighted within the set.
Another track to take would be to try a meshgrid approach, this answer for a different question may help there:
Python matplotlib - formatting with meshgrid for user-defined function