axes through origin (0,0)

Hello:

I would like to place the x label and y label to be placed above lines
running through the origin (0,0). I am happy to leave the tick markings
on the border around the plot.

I currently use a
ax.axvline(x=0, color='black')
ax.axhline(y=0, color='black')

to get the lines, but how to get y label to be on the top of the vline
that goes through x=0 and the xlabel to be at the left end of the hline
that goes through y=0?

Thank you,

Zoho

Sadly, it is not possible, but it is on the wish list. You can
however, turn it off, and then use ax.text to put text anywhere you
want. Eg to place something at 0,0

  ax.text(0, 0, 'my xlabel')

ยทยทยท

On Fri, Jan 16, 2009 at 9:47 AM, Zoho Vignochi <zoho.vignochi@...287...> wrote:

Hello:

I would like to place the x label and y label to be placed above lines
running through the origin (0,0). I am happy to leave the tick markings
on the border around the plot.

I currently use a
ax.axvline(x=0, color='black')
ax.axhline(y=0, color='black')

to get the lines, but how to get y label to be on the top of the vline
that goes through x=0 and the xlabel to be at the left end of the hline
that goes through y=0?