grid lines at specific coordinates

Friends,

I would like to place grid lines (precisely draw lines) at specific (x,y) coordinates. If i am not wrong, grid() function will take only True/False arguments. Someone kindly write me if there is any way to do this.

Thanks,
Bala

Perhaps the Major/Minor Locators would be of use to you?

http://matplotlib.sourceforge.net/api/ticker_api.html

http://matplotlib.sourceforge.net/examples/pylab_examples/major_minor_demo1.html

When turning on the grid, you can control whether you turn on the minor or major lines by specifying the ‘which’ keyword. Use major lines if you want tick labels for them, use minor lines if you don’t.

I hope this helps,
Ben Root

···

On Thu, Aug 19, 2010 at 5:05 PM, Bala subramanian <bala.biophysics@…287…> wrote:

Friends,

I would like to place grid lines (precisely draw lines) at specific (x,y) coordinates. If i am not wrong, grid() function will take only True/False arguments. Someone kindly write me if there is any way to do this.

Thanks,
Bala

    Friends,

    I would like to place grid lines (precisely draw lines) at specific
    (x,y) coordinates. If i am not wrong, grid() function will take
    only True/False arguments. Someone kindly write me if there is any
    way to do this.

Are you perhaps looking for the axvline and axhline pyplot functions and corresponding Axes methods?

Eric

···

On 08/19/2010 01:20 PM, Benjamin Root wrote:

On Thu, Aug 19, 2010 at 5:05 PM, Bala subramanian > <bala.biophysics@…287… <mailto:bala.biophysics@…287…>> wrote:

    Thanks,
    Bala

Perhaps the Major/Minor Locators would be of use to you?

http://matplotlib.sourceforge.net/api/ticker_api.html
http://matplotlib.sourceforge.net/examples/pylab_examples/major_minor_demo1.html

When turning on the grid, you can control whether you turn on the minor
or major lines by specifying the 'which' keyword. Use major lines if
you want tick labels for them, use minor lines if you don't.

I hope this helps,
Ben Root

------------------------------------------------------------------------------
This SF.net email is sponsored by

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users