Highlighting the axes of coordinates

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.bronger@...2202...
                                  or http://bronger-jmp.appspot.com

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<bronger@...669...> 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.bronger@...2202...
or http://bronger-jmp.appspot.com

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