1
2
3
4
5
6
7
from pylab import *
fig = figure()
ax = fig.add_subplot(1,1,1)

#changes x oy y axis to logscale
ax.set_xscale('log')
ax.set_yscale('log')