Matplotlib logarithmic scatter plot

Bas wegwerp at gmail.com
Mon Feb 27 16:28:33 EST 2006


Try this, don't know if this works for al versions:

from pylab import *
x=10**linspace(0,5,100)
y=1/(1+x/1000)
loglog(x,y)
show()

If you only need a logarithm along one axis you can use semilogx() or
semilogy(). For more detailed questions go to the matplotlib mailing
list.

Cheers,
Bas




More information about the Python-list mailing list