On Wednesday 21 April 2010 08:10:00 Gökhan Sever wrote: > On Tue, Apr 20, 2010 at 11:11 AM, Gökhan Sever <gokhanse...@gmail.com>wrote: > > On Tue, Apr 20, 2010 at 2:42 AM, Matthias Michler > > <matthiasmich...@gmx.net > > > > > wrote: > >> > >> Hi Gökhan, > >> > >> thanks for testing this small patch. Maybe one of the developers could > >> submit > >> it or should I place it on the patch-tracker? > > > > Usually after some pinging someone picks up the code and commits in to > > the svn. > > > >> About the toggling of all grid-lines using > >> event.inaxes.grid(which='majorminor') > >> I not sure this is intended, because this means that you will allways > >> toggling > >> major and minor tick - grid lines using key 'g' instead of only toggling > >> major tick grid lines. Maybe a developer or other users could comment on > >> the > >> preferred behavior. > > > > Just create a simple plot and log-log x,y-axes and try hitting "g". Both > > minor and major gridlines must be visible to get a clear view. In some > > cases grids clutter the figure instead of helping. > > > > In my previous post, the main point was change in > > event.inaxes.grid(which='majorminor') doesn't really work as expected. > > Could you at least check that behavior?
I think it works like expected, i.e. it toggles the state of showing grid lines for minor and major ticks. The problem it the case were people set only major tick grid lines ax.grid(True, which='major') and than press the key 'g', because than they change between having major and minor tick grid lines and this is somehow a strange behavior, isn't it? Therefore I myself am not convinced of that solution. [...] > I spotted another annoyance: > > Save the following lines in a file called test.py and run python test.py > > import matplotlib.pyplot as plt > > plt.plot(range(100)) > plt.xscale('log') > plt.yscale('log') > ax = plt.gca() > ax.grid(False, which='majorminor') > plt.show() > > This doesn't work properly in the first call. If you call it from within > Ipython -pylab using run test.py again no difference. Only when you call > ax.grid(False, which='majorminor') grids disappear. I'm sorry, I don't get your point. If I ran your script I get a window without gridlines as expected. The result is independent of the call of ax.grid(False, which='majorminor'). By the way are you using matplotlib-svn? Kind regards, Matthias ------------------------------------------------------------------------------ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users