Matplotlib: Use logarithmic scale
import matplotlib.pyplot as plt
fig = plt.figure()
ax = plt.gca()
ax.scatter(x, y)
ax.set_yscale('log')
ax.set_xscale('log')
Via StackOverflow.
import matplotlib.pyplot as plt
fig = plt.figure()
ax = plt.gca()
ax.scatter(x, y)
ax.set_yscale('log')
ax.set_xscale('log')
Via StackOverflow.
Leave a comment