Search code examples
pythonmatplotlibplotlogarithm

Base of semilog in matplotlib


What is the default logarithmic base of the semilogx() and semilogy() functions in matplotlib, when not passing any other parameters? Is it base-10, or any other base?


Solution

  • The base of semilogx and semilogy is 10 unless you set the basex or basey argument. You can see this in the source, but I agree it ought to be made clear in the documentation.