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(100))

#If comment the following line everything is fine
ax.set_xscale('log')

xaxis = ax.get_xaxis()
xaxis.grid(which = 'Minor')
xaxis.grid(False)
plt.show()


Thanks
Federico
--
Y yo que culpa tengo de que ellas se crean todo lo que yo les digo?

-- Antonio Alducin --