Changing the properties of the individual grid line can be tricky.
The easier way in my opinion is to draw another line with thinker linewidth.

ax=subplot(111)
ax.grid()

from matplotlib.transforms import blended_transform_factory

# for x=0
trans = blended_transform_factory(ax.transData, ax.transAxes)
ax.plot([0,0], [0,1], "-",
        transform=trans,
        color="red", linewidth=2,
        zorder=5)

# for y=0
trans = blended_transform_factory(ax.transAxes, ax.transData)
ax.plot([0,1], [0,0], "-",
        transform=trans,
        color="blue", linewidth=2,
        zorder=5)

-JJ


On Wed, Jul 1, 2009 at 8:40 AM, Torsten
Bronger<bron...@physik.rwth-aachen.de> wrote:
> Hallöchen!
>
> I have a grid in my plot, but additionally I'd like to highlight the
> "zero" axes, where x=0 or y=0, e.g. by showing them in red, or with
> thicker lines.  How is this possible?
>
> Tschö,
> Torsten.
>
> --
> Torsten Bronger, aquisgrana, europa vetus
>                   Jabber ID: torsten.bron...@jabber.rwth-aachen.de
>                                  or http://bronger-jmp.appspot.com
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>

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

Reply via email to