From: Jean-Luc M. <jea...@fr...> - 2005-07-22 08:51:07
|
> 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 |