logarithmic imshow

Hello,

Maybe it's a mistake but I did not find an option 'log' to display a logarithmic view of an image like semilogy for a 2D plot.
Is it planned to add this option ?

best regards,

jean-Luc Menut

It already exists:

gca().set_yscale('log')

ยทยทยท

On Jul 18, 2005, at 6:24 AM, Jean-Luc Menut wrote:

Maybe it's a mistake but I did not find an option 'log' to display a logarithmic view of an image like semilogy for a 2D plot.
Is it planned to add this option ?

It already exists:

gca().set_yscale('log')

Thank you vrey much for the answer but I was probably not clear : What I want to do is to have a logarithmic color scaling (ie zcale).

However I tried your method (it may be useful) :

import MLab,Numeric,pylab
a=Numeric.resize(MLab.rand(900),[30,30])
b=a
pylab.imshow(b)
pylab.gca().set_yscale('log')

but I obtain an error message :
ValueError: Cannot set nonpositive limits with log transform

Jean-Luc Menut