I want to draw a graph with two y scales and a log graph in it. I followed the example given here :
Now I want to turn off the grid, because it looks pretty ugly if I print it on a little paper. However, the grid just does not disappear! If I do this using a non-logarithmic scale, everything is fine, but it somehow doesn't work.
Here is the code:
import numpy as np import matplotlib.pyplot as plt fig = plt.figure() ax1 = fig.add_subplot(111) t = np.arange(0.01, 10.0, 0.01) s1 = np.exp(t) ax1.loglog(t, s1) plt.hold(False) plt.draw() plt.show()
source share