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 --
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to