Re: [Matplotlib-users] impossible to deactivate minor grid in logscale

2012-03-01 Thread Paul Hobson
Federico, You were so close! Try this: fig = plt.figure() ax = fig.add_subplot(111) ax.plot(range(100), range(100)) #If comment the following line everything is fine ax.set_xscale('log') xaxis = ax.get_xaxis() xaxis.grid(False, which='minor') xaxis.grid(False, which='major') plt.show() Hope tha

[Matplotlib-users] impossible to deactivate minor grid in logscale

2012-02-29 Thread Federico Ariza
Hi If I set the scale to log and set the grid to minor then, it is impossible to deactivate the grid It does not happen with major or without the logscale The code to reproduce the problem import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111) ax.plot(range(100), range(10