Re: [Matplotlib-users] logarithmic plotting and the grid
On Thu, Feb 11, 2010 at 8:13 AM, Lee Boger wrote: > > I think he wants to turn the grid on for both major and minor ticks. I'm > interested in that also. Is there a way to do that? > > ax.grid(True, which='major') ax.grid(True, which='minor') JDH -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] logarithmic plotting and the grid
I think he wants to turn the grid on for both major and minor ticks. I'm interested in that also. Is there a way to do that? Lee Jae-Joon Lee 02/10/2010 08:10 PM To K L cc matplotlib-users@lists.sourceforge.net Subject Re: [Matplotlib-users] logarithmic plotting and the grid Caterpillar: Confidential Green Retain Until: 03/12/2010 grid takes an optional argument "which". Unfortunately this is not properly documented with pylab.grid and Axes.grid. But see http://matplotlib.sourceforge.net/api/axis_api.html?highlight=grid#matplotlib.axis.Axis.grid grid(True) # this turns on gridlines for major ticks grid(True, which="minor") # this turns on gridlines for minor ticks. -JJ On Wed, Feb 10, 2010 at 6:18 PM, K L wrote: > Hi, > > I want a more "detailed" grid for my logarithmic plotting. The following code: > > from pylab import * > semilogy(range(10)) > grid(True) > show() > > will produce output like this: http://i49.tinypic.com/2dpd3r.png > > Notice that the grid uniformly slices the image. And some ticks on the > y-axis doesn't have grid lines. This is not want I want. > > Conversely, something like this is preferred: > > http://www.mathworks.com/access/helpdesk/help/toolbox/comm/ug/bert_mat_explot1.gif > > Thanks! > > -- > SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, > Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW > http://p.sf.net/sfu/solaris-dev2dev > ___ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] logarithmic plotting and the grid
grid takes an optional argument "which". Unfortunately this is not properly documented with pylab.grid and Axes.grid. But see http://matplotlib.sourceforge.net/api/axis_api.html?highlight=grid#matplotlib.axis.Axis.grid grid(True) # this turns on gridlines for major ticks grid(True, which="minor") # this turns on gridlines for minor ticks. -JJ On Wed, Feb 10, 2010 at 6:18 PM, K L wrote: > Hi, > > I want a more "detailed" grid for my logarithmic plotting. The following code: > > from pylab import * > semilogy(range(10)) > grid(True) > show() > > will produce output like this: http://i49.tinypic.com/2dpd3r.png > > Notice that the grid uniformly slices the image. And some ticks on the > y-axis doesn't have grid lines. This is not want I want. > > Conversely, something like this is preferred: > > http://www.mathworks.com/access/helpdesk/help/toolbox/comm/ug/bert_mat_explot1.gif > > Thanks! > > -- > SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, > Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW > http://p.sf.net/sfu/solaris-dev2dev > ___ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] logarithmic plotting and the grid
Whoop, the "evil' mathwork even doesn't allow me to refer to a picture on the site. ok, here's the effect I need (semilogy plotting with more detailed grid) http://i47.tinypic.com/95zihi.gif Sorry for any inconvenience! -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users